BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Allowing application to open itself automatically (http://www.blackberryforums.com/developer-forum/157148-allowing-application-open-itself-automatically.html)

taqi.mir 10-30-2008 07:57 AM

Allowing application to open itself automatically
 
Hi,

Is there any way to allow the application to open itself in a particular time like Alaram.

taqi.mir 10-30-2008 07:57 AM

Any idea?

Dougsg38p 10-30-2008 08:44 AM

Sure:

ApplicationDescriptor thisApp = ApplicationDescriptor.currentApplicationDescriptor ();
ApplicationManager.getApplicationManager().schedul eApplication(thisApp, System.currentTimeMillis() + 60100, true);


This particular example restarts the application in 1 minute. You can set the time for any time required.

taqi.mir 11-04-2008 04:37 AM

Hi,

But i want my application should open at incoming call or call is connected then where will i have to place the below peice of code.

ApplicationDescriptor thisApp = ApplicationDescriptor.currentApplicationDescriptor ();
ApplicationManager.getApplicationManager().schedul eApplication(thisApp, System.currentTimeMillis() + 60100, true);

simon.hain 11-04-2008 07:30 AM

take a look at the API of ApplicationManager.


All times are GMT -5. The time now is 11:38 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.