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:

http://supportforums.BlackBerry.com/T5/Java-development/global-events-and-global-event-listeners/TA-...

There are other ways, bt, I think it's the cleanest.

Tags: BlackBerry Developers

Similar Questions

  • When I try to run Age Of Empires with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    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.

  • Even if I have cookies recording enable when I restart the application in that I have to enter all of the newspapers in detail yet. How do use cookies stored?

    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

  • installed the game CD Gears of War 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.

    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.

  • Cannot install Windows 7 "Windows didn't prepare the computer to start the next phase of the installation." to install Windows, restart the application.

    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.

    http://notebooks.com/2010/11/09/how-to-recover-documents-music-and-email-after-upgrading-with-the-Windows-old-folder/

  • Restart the application

    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

    }

  • Serve the application automatically under Weblogic servers logs

    Hello

    I am studying serving them in Weblogic server.

    Could someone help me to find a setting (if it exists) in Weblogic properties files, which will serve the application automatically logs after "n" number of days.


    for example, in the D:\Hyperion\deployments\WebLogic9\servers\aas\logs directory, I see many eas log files created with the extensions of .log00001 to .log00427. Is it possible to remove these automatically without using windows scripts.


    Thank you
    Prasad

    This is configured in the logging of every server (servers-> servername-> logging) tab. Set the type of rotation for 'Time', to keep files and rotation interval (default value of 24 hours), etc. This will keep the files to a fixed number.

  • Sidebar gadgets are in random order each time I restart the application from the sidebar or I restart the computer.

    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.

  • 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.

  • Restart the application on windows server in datacenter information service.

    Disabled the service appinfo (he was operating at 80% cpu) and restarted by error. I can't find a way to restart the appinfo on windows server 2008:

    -safe mode is impossible because msconfig and bdedit do not work without appinfo

    -boot.ini does not exist on windows server.

    -regedit does not open without appinfo

    -sc config does not work without appinfo

    -analysis system, ditto

    Is is possible that simply disabling a service to completely destroy a windows server?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • 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 spooler

    Hello

    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_problems

    Solve printer problems - a Mr Fixit
    http://windowshelp.Microsoft.com/Windows/en-us/help/8c11977e-8244-408f-A036-7978a618d7a21033.mspx

    ------------------------------------------------------
    Logon as administrator

    Start - 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.mspx

    If 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.htm

    How 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

    http://social.answers.Microsoft.com/forums/en-us/vistaperformance/thread/a15779d6-ac0d-42FD-9Ac2-a1da241ea19f/

    and here
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/58b54fa9-cf6f-40F7-90b2-8093c6777493

    ------------------------------------------------------
    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/928228

    CheckDisk (chkdsk) runs at startup.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    I hope this helps.

  • Failed to create task scheduler to restart the system automatically within the given interval

    Dear experts,

    I have two accounts on my computer. One was a Director and another was normal user. but the two users are protected by Word.

    When I log in as normal user, how can I set a task in the Scheduler to restart the computer once every 6 hours.

    Thank you

    KP Swamy

    Hello PK Swamy.

    Welcome to the Microsoft Community Forum.

    The Task Scheduler service lets you perform tasks on a chosen computer automated. With this service, you can program any program to run at a convenient time for you, or when a specific event occurs. Task Scheduler monitors the time criteria or the event that you choose and execute the task when these criteria are met.

    I understand that you are not able to create the Task Scheduler to restart the system. Please, I beg you, don't worry I'll try my best to resolve the issue.

    I suggest you try the following steps to create the Task Scheduler:

    1. click on start, type taskschd.msc in the start search box and press enter (it will launch the Task Scheduler).

    Note: If you are prompted for an administrator password or a confirmation, type the password or provide confirmation and click Ok.

    2 left click in the right pane on the Task Scheduler Library > open Action in main menu > new folder > name MyTasks > click Ok.

    3. left-click on the MyTasks > menu, choose Action > create a basic task (it open Assistant tasks).

    4. you can enter the name , for example "restart" and click on Next.

    5. in the trigger section, you can specify when you want to run your task, for example:

    a. Select daily and the press Next.

    b. now you can specify the day, time and all reproduce on a daily basis, after the press Next.

    6. in the Action section, you can choose what you want to run, for example, restart your system to do this:

    a. choose start a program and press on Next.

    b. in the field program/script , type shutdown /r and click on Next.

    7. click on end.

    Check out the link:

    Schedule a task

    http://Windows.Microsoft.com/en-us/Windows/schedule-task#1TC=Windows-7

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Thank you

  • Restarting the computer automatically on its own. You never know how long the computer stays on. Your work and it just turns off and then return.

    I had a problem with my AcerPower F2 Windows XP Professional. You will work and it stops just and restart on it. What could be causing it to do this? A virus? I use this computer a lot for school I hope its something fixable. He has had this problem for at least two days that I am aware. Not sure when its going to do this again, its really hard to get anything done when you don't know how much time you have. This will be repeated this unexpectedly, without warning. It will work for awhile then do it again, back and fourth. I can't put up with this, I hope that someone out there has an idea. Thanks much :-)

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    Here is the Vista Forums.

    See you soon

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Satellite P30 - 110 error

    The computer always hang when I open Web pages and sometimes even blue.It is said:Stop: 0x0000008E (0xC0000005, 0xF86791C8, 0xEEFED7E8, 0x00000000)SKNWF.sys address F86791C8 base at F8676000 DataStamp 3bd673a6Dump of physical memory BeginComplete phy

  • Disabled in Windows XP administrator account

    I disabled the administrator account in Windows XP (do not think), and my other accounts have been locked. When I try to log in as Administrator via CTRL-ALT-DEL, I get a message stating that the account its been disabled. What should do? Or the driv

  • Problem Windows Installer for windows 7

    Cannot install anything. Gives always error windows install not available. I tried the messages on the internet. They do not work Nothing under the works here https://support.Microsoft.com/en-CA/KB/2642495

  • Device Manager Catagory says "Unknown" instead of "USB controllers"

    I have this in my device manager - all my USB devices work OK. More I- It's my network page, but my network connection works OK. How can I fix it? Dean

  • Restore the database to the fallback location

    Hi all9iRHEL5I'm doing to restore the database to the startup location.Copy the components of backup on the remote server (same directory).RMAN target / auxiliary sys/change_on_install@STANDBYRelease of Recovery Manager: 9.0.1.1.0 - 64 bit Production