08-21-2008 11:56 AM
Is there a way to disable the auto-run on startup at run time?
I would like to give the user the option to disable the app from auto starting until he clicks on the application.
If this option is not available, is there a way to detect that the application has started from an auto start mode vs from a user clicking on the app icon from the home screen?
Thanks
Solved! Go to Solution.
08-21-2008 12:30 PM
You can use the ApplicationManager.inStartup method to see if the BlackBerry is in the process of starting up. Your application can only run when the BlackBerry is in this state if it was auto started.
There isn't any built in way to disable auto start, but you could build this logic into your application (not take any action until a user does something).
08-21-2008 02:09 PM
I believe you could use an alternate entry to distinguish between the autostart and GUI started application. See:
How To - Setup an alternate entry point for my application
Article Number: DB-00008
http://www.blackberry.com/knowledgecenterpublic/li
08-22-2008 04:24 AM
08-27-2008 02:34 PM
Thank you guys for the reply.
I used Mark's suggestion ( ApplicationManager.inStartup ) and built a logic around it. It worked fine and achieved what I was looking for..
Thank you all.