Why then I restart the application immediately?
After reading around, I feel that it is recommended to plan restarting the app for up to a minute later as follows:
ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor(); ApplicationDescriptor newDesc = new ApplicationDescriptor( descr, "My App Name", new String[] { "myArgument" }, descr.getPosition(), descr.getNameResourceBundle(), descr.getNameResourceId(), ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM ); ApplicationManager appManager = ApplicationManager.getApplicationManager(); appManager.scheduleApplication(newDesc,System.currentTimeMillis() + 60001, true); System.out.println("Application is exiting..." ); System.exit(0); return;
However, an immediate restart seems to work just fine, the following:
ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor(); ApplicationDescriptor newDesc = new ApplicationDescriptor( descr, "My App Name", new String[] { "myArgument" }, descr.getPosition(), descr.getNameResourceBundle(), descr.getNameResourceId(), ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM ); ApplicationManager appManager = ApplicationManager.getApplicationManager(); try { appManager.runApplication(newDesc); System.exit(0); return; } catch(ApplicationManagerException e) { // Handle situation when application cannot run System.out.println("Couldn't restart app: " + e.getMessage()); }
Can someone explain why I should do it the first way instead please? I really don't want a delay if I can help it.
Reviewing logs of my release, I also wonder why the application scheduled (with delay ms 60001) often seems to run within 30 seconds after the restart. I run on a simulator of 9930 at present.
Thank you very much.
Think that if you were just amgr.launchApplication, if executed somehow before the end of the app was fully, he could just go back to the app in the foreground, and it ends then cancel. So it would not launch.
but you can try it
An alternative is to include another point of entry for the same app module, which, directly by hand, simply appmgr.launchApplication what you're trying to restart. Then you put one launchApplication for this other point of entry where you currently have the scheduleApplication, and it could act as a relay, ensure that enough that delaying the application probably will restart immediately after that he finished closing.
that is to say:
project 1: CoffeeMaker.jdp regular app, no arguments module name: company_CoffeeMaker project 2: CoffeeMakerReset.jdp alternate entry point to CoffeeMaker module name: company_CoffeeMaker argument: Starter check "System App" class CoffeeMaker { public static CoffeeMaker app; public static void main(String args[]) { if ((args.length > 0) && args[0].equals("Starter")) { ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker"); } else { app = new CoffeeMaker(); try { app.enterEventDispatcher(); } catch (Exception e) { ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker?Starter"); } } } }
Personally, I use scheduleApplication with a 10 second delay.
Tags: BlackBerry Developers
Similar Questions
-
Former title: Trouble running games CD, post installation under Vista. That is to say 2 AoE, Warrior kings.
I have vista on my laptop, I installed games like shogun and medieval total war and they both work perfectly, I tried to put it on the age empires and warrior kings: battles who are also on a cd format, I installed the last but they usually run after that. Although the instialltion is over, I get asked if I wanted to leave the program to run as administrator. : s
DVD/CD drive recognize there is a disc, but does not work automatically. I can't install the program normally when I run the setup.exe for the game. When I try to run the program with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.
I tried to run them in compatibility mode, using all variants. and also I tried soome of advice from the help article about the disk drivers. game discs are clean and one striped.
Why can I install the program and access the drive to use the files it contains, but then not use the disk?
Hello
This problem may occur if one of the following conditions is true:
a. you do not use the game disc to start the program.
b. the CD player is not compatible with the program.
c. using a copy of the program CD.
d. you are not connected to the computer as an administrator.
e. the programs interfere with the start of the game which is running but is invisible to you.
f. the CD-ROM drive uses out-of-date drivers.I would ask you to try the methods listed in the article below:
Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.
http://support.Microsoft.com/kb/228985/en-us
I hope this helps.Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
original title: Gears of War for PC (Vista)
I installed Gears of War game CD on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive. I've been on the net and does not know what is the problem and why this game will not run. I've installed, uninstalled, reinstalled tried to run as administrator, got the latest patch, all the things that have said all sites to do - anyone have any ideas? Any help would be appreciated! Thank you!
Hi NoOneSpeciale,
It is very possible that your CD may be damaged. Is it possible to get another copy to try on your machine? Or try this copy on another machine to see if it works or not.
Also check in control panel--> system--> for you Device Manager make sure that there is no yellow/red icon next to the CD player and it's function correctly.Let us know the result, Kevin
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Original title: Installation of Windows 7.
I tried to install Windows 7 (clean install from XP and reveived the following message is displayed:)
Windows didn't prepare the computer to start the next phase of the installation. to install Windows, restart the application.
I restarted my PC, anti anti-virus disabled (as advised) and still get the error message.
According to the Upgrade Advisor Windows 7 my PC is compatible.
Any ideas?
If you have compatible hardware and your computer still stops responding, disable any unnecessary material. Remove (USB) universal serial bus devices. Remove or disable network cards, sound cards and cards of the series; and then restart the installation.
Boot from the Windows 7 DVD
Click Install now
Accept the license agreement
When the option is displayed to select a type of installation, click (Custom advanced)Select the disk partition where you want to install Windows 7 click Next.
You will receive the following warning:
The partition you have selected may contain files from a previous Installation of Windows. If so, these files and folders will be moved to a folder named Windows.old. You will be able to access the information in Windows.old, but you will be able to use your previous version of Windows.
(At all costs, do NOT click on anything in Format, deletion or Partition name.) So even do a custom installation, your personal files are still kept. Click OK
The installation program will now begin installation. During installation, your computer will be restarted several times.
Once the installation is complete, you can complete the Out of Box experience as the choice of your laptop, create a username, password, your time zone. You can then proceed to download the latest updates for Windows and reinstall your applications and drivers.
You can then retrieve your personal files from the Windows.old folder and reinstall all of your applications and drivers.
-
Have the ability to save cookies and all the other stuff already activated, I connect to several sites (e.g. gmail).
When for some reason I restart the application, the site prompts me to fill again in my log in details. The strange thing is that on my desktop PC, it seems to have exactly the same parameters however save in this case, or by using saved cookies actually works.
Which is maybe a problem of Ubuntu? I do not know. But some profile settings are reset any time that I opened the application.
Any ideas?
Thank you
Try to clear your Cookies for the sites concerned.
Tools > Options-> life privacy - Cookies = the button show Cookies
Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.
When you are finished click Close.If this problem persists, you may need to delete the __cookies.sqlite__ file in your profile folder.
http://support.Mozilla.com/en-us/KB/profiles#How_to_find_your_profile
You might need to view your "hidden files and folders" through Options of folders in the control panel -
- I allowed to install Shockwave Flash in my computer this morning, and then malfunction of the application. However, I reset my computer and connected only on yahoo.com but I couldn't sign in to other sites like google, wellsfargo and. I tried to disable this add-on 'Shockwave Flash' managing by module. Help, please. Thank you.
- Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Shockwave Flash should not do that. However, if you want to delete it go to programs and features in Control Panel. Click once on Adobe Shockwave Player and click on uninstall in the menu at the top. I suggest you do a comprehensive analysis here, a free service offered by Microsoft. http://OneCare.live.com/site/en-us/Center/whatsnew.htm
-
Dear all, I would like to restart the application programmatically. Is this possible? If possible invite you to share the sample sample. Thanks & regards Sudhakar choup
Use ApplicationManager to restart the application. In the example below, we establish the restart to 60.1 seconds start time in the future. It is because the time has a granularity of one minute.
See the javadocs for ApplicationManager
ApplicationDescriptor thisApp = ApplicationDescriptor.currentApplicationDescriptor ();
ApplicationManager.getApplicationManager (.scheduleApplication) (thisApp, System.currentTimeMillis () + 60100, true); -
Cannot install point. Restart the application and re-download your purchase.
We have an application published with two folios in there. Several users have complained that when they try to update the app, they get this error: "cannot install point. Please restart the application and download your new purchase. "I have NOT been able to reproduce this error on 4 different iPads. However, I have 3 users who receive this error whenever they try to update the folio.
They tried to remove the app and reinstall. The same problem.
They tried several different WiFi FORT connections, same problem.
A user came to my office. We have updated the app on my iPad. Worked well. Tried it on his iPad. Got the error. Same WiFi connection within minutes following one another.
What is going on?!!!
Adobe has released a series of patches for viewers to iOS to handle this problem, you have described. V31 V32 these patches and are in need of an update. Knowing that your application is v29, v32 app you just submit you should be fine.
-
Action Script code to restart the application air at regular intervals
I hope that someone more versed in the action script 3 for air can help me!
I have an app which I intend to display on the ipad at an exhibition. I'd be able to add code to the script action.
who's going to restart the application after a certain period of time (say 5 minutes), if it has not interacted with that is the screen has not affected?I would be very grateful if someone could help me with this
You can call a function when the idle time is 5 minutes and function reset everything that is appropriate for your application:
var fiveMin:int = 5 * 60 * 1000;
var: timer = new Timer(fiveMin,0);
timer.addEventListener (TimerEvent.TIMER, resetAppF);
Timer.Start ();
this.addEventListener (MouseEvent.MOUSE_DOWN, resetTimerF);
function resetTimerF(e:MouseEvent):void {}
Timer.Reset ();
Timer.Start ();
}
function resetAppF(e:TimerEvent):void {}
do all reset your app
}
-
I just want to know why every time I restarted the computer I save then come out of the background is black, I put the f1 not the way I had before why now I guess that something is missing can fix you it for me please
Hi linsugr,
Do you know when this started? The simplest solution because I have no idea of what is happened to cause this is to restore the system to a point BEFORE this problem started (and give it a a few days to be sure). If you use Windows 7, see:http://www.sevenforums.com/tutorials/700-system-restore.html. If you are using Vista, see:http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/. If you are using XP, see:http://www.bleepingcomputer.com/tutorials/tutorial56.html. If the first attempt fails, try to go back a little further and see if you are met with success.
I hope this helps.
Good luck!
-
For some reason, whenever I restart the computer or I close the application of the sidebar and re - open in the start menu, my gadgets are in random order.
I saw another thread for this on Microsoft Answers Social, but his problem was just after installation of SP2. I had SP2 for a long time and recently began to experience this.
A moderator of Microsoft support proposed making sure that Java and Flash have been fully installed and implemented to date. I have both.
However, due to a recent achievement in the platform of Adobe Flash (the one that allows the remote control, discovered last week), Adobe has proposed the Flash upgrade to the release candidate 7 (10.1) version. What I did. Could that be the cause? Hope not. If this is the case, then I will be happy to downshift until a solution has been found. However, the Java platform is perfectly updated and operational. And it's the 6.20 version, which is the latest public version.
Well, I reformatted my hard drive and all restore factory settings.
Everything worked fine... Until I installed again my Adobe CS5 Master Collection.
So I started uninstalling the components one by one to see what worked...
It turns out that Adobe Acrobat 9 Pro Extended (or rather the 64-bit extension him) makes the sidebar go haywire.
Uninstalled Acrobat 9 and no problems yet. Restarted several times to make sure.
I hope that one day I'll find an update to Acrobat who sets. Maybe I'll go post in the Adobe forums for that one.
Whatever it is, no biggie for me - I barely use Acrobat.
-
How do I restart the application spooer
my printer stopped working
the message window say
local printer spooler service is not running. Restart the computer or the spoolerHello
Check chan seen message here - one of the highest.
fixed spooler subsystem app stopped working
http://social.technet.Microsoft.com/forums/en/itprovistaprinting/thread/460f297a-dd66-4476-A176-542e1519ca3e===================================
If the above didn't help:
Use this method to clear the spooler and then uninstall and reinstall your printer (check with the manufacturer for)
the latest driver).Check Mr. Fixits here and if you use the other methods go back and try again later.
Problems of print and error - a Mr Fixit of printing
http://support.Microsoft.com/GP/printing_problemsSolve printer problems - a Mr Fixit
http://windowshelp.Microsoft.com/Windows/en-us/help/8c11977e-8244-408f-A036-7978a618d7a21033.mspx------------------------------------------------------
Logon as administratorStart - type in the search box-> COMMAND - control to the top of the list and RIGHT CLICK – RUN AS ADMIN
You can copy and paste each line except those brackets and press ENTER after each.
net stop Spooler
(echo suppression of all print jobs)<-- you="" should="" see="" this="">-->
ping localhost n 4 > zero
del/q %SystemRoot%\system32\spool\printers\*.*
net start Spooler
(sound Done!)<-- you="" should="" see="" this="">-->
ping localhost n 4 > zero
Another way
http://4sysops.com/archives/how-to-cancel-a-print-job-that-hangs-under-Windows-Vista-and-XP/Check the print - DELETE/STOP queue all jobs - then right click on the printer - REMOVAL
http://windowshelp.Microsoft.com/Windows/en-us/help/bb6f81d9-4092-4ac8-9716-2bd008f513e11033.mspxIf you use Control Panel - Classic - printers
Try after unplugging your printer if necessary.
-------------------------------------------------------------Also check the spooler print and its dependencies and addictions Service.
Print Spooler service
http://www.blackviper.com/WinVista/services/Print_Spooler.htmHow difficulty Windows Vista print spooler starts do not
http://www.ehow.com/how_4920100_vista-print-spooler-not-starting.html------------------------------------------------------------
Check this thread if necessary - to stop and erase the spooler
------------------------------------------------------
Clean the General corruption and repair or replace the damaged/missing files.Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228CheckDisk (chkdsk) runs at startup.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.htmlI hope this helps.
-
restart the application automatically
Hi all
I apply BB who have two modules of the application, (two classes extends UIApplication).
which acts as a server and client
How do I restart on these two applications without affecting the other module?
is this possible?
Thank you
OK, here's how I'd do it, assuming I know that
PTClockListener
still works.
(1) I would like to add a GlobalEventListener to PTClockListener
(2) in the treatment of the GlobalEvent, I make the code to reboot as shown previously.
(3) I would send the GlobalEvent whenever I wanted the PTClockListener to restart.
You will find this useful for GlobalEvents:
There are other ways, bt, I think it's the cleanest.
-
Original title:
I have a folder on my desktop and added 5 PPTX files. I open the folder so I can see all the files, double-click on one to change, and then save it again in the same folder. Then I close the Powerpoint application. Now the Explorer window of window (which I opened before) will not respond. It clicks when I click it. I can't close or access any of the files inside. Any ideas? My computer still respond as usual.
64 bit OS
Hello
You did changes to the computer, before the show?
Method 1:
Step 1: Safe Mode
Start your computer in safe mode and check the number.
Start your computer in safe mode
Step 2: Clean boot
If you are not facing the problem in safe mode, and then put your computer in a clean boot and search for the question.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.
Method 2:
Refer to this link.
Error: Windows Explorer has stopped working
Note: Please skip the step that offers to perform a upgrade in Place, for now.
Method 3:
Change the location of the folder and check.
-
Why no Lightroom in the application list for creative cloud?
I just joined the program of photographer and installed Photoshop CC. But could not find Lightroom in the creative cloud. Nor could I install Lightroom from the center of the application.
Hi iamphotoman,
Please go through this extracts:
Why can't I see Lightroom in the creative cloud application?
If you are a member paying creative cloud, you'll see Lightroom in the cloud Creative if your computer does not meet the minimum requirements of the system. Check that your system meets the minimum requirements for the latest version of Lightroom.
If you are using a trial version of creative cloud, the trial of Lightroom is not available through creative cloud. However, it is available as a stand-alone test. See trial install Lightroom | Creative cloud membership.
Note:
Lightroom requires a compatible 64-bit operatin
You can get detailed information in http://helpx.adobe.com/lightroom/kb/lightroom-creative-cloud-faq.html#id_7413
Hope this helps you.
Kind regards
Baudier
Maybe you are looking for
-
Airport Extreme network 4G connection
I currently have the following configuration for my internet appliances: I have an Airport Extreme unit serving wireless three units Airport Express to extend WiFi coverage throughout the House. Physically connected to the Airport Extreme via etherne
-
G20-129: per antenna / cable TV
(1) it is possible to watch TV with antena and not cable? I read in the manual of Media Center to connect colossial on the adapter and the other part to the antena? Is this correct? But I do not have an antena! (2) when I watch TV with Qosmio Player
-
What is Belarc Advisor and how to get it and use it?
What is Belarc Advisor and how to get it and use it?
-
How can I disable completely sync in Windows Media Player?
Whenever I connect my phone to my computer, Windows Media Player comes and asks for sync, sometimes resulting in the device not being recognized, so I can't copy files to the phone without having to shut down WMP and reconnect my phone to my computer
-
Customer Pix unit inside and dmz networks
Are there problems that prohibit a client to the unit to start connections to hosts on pix dmz networks and pix inside at the same time? You can provide a link that describes the side PIX of the two networks not only inside network access configurati