Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-11-2011 09:48 AM
Is it possible to detect when your BlackBerry has been reset or you've removed the battery?
Weird question, I know but it would be awesome if it's possible.
Solved! Go to Solution.
08-11-2011 09:50 AM
08-11-2011 10:07 AM
08-11-2011 10:12 AM
Actually Simon's answer was correct if perhaps a little too brief for you.
Here is a little more.
The usual way would be to have your application autostart. Most people do this via an Alternate Entry. So they have a part of their application that autostarts and sets everything up, and another part that runs when the icon is pressed. How to do this is described here:
Be aware that an application is also autostarted on initial install. To detect the difference, you need to check, in your autostart application, that the device is 'inStartUp - see
Hopefully this is enough.
08-11-2011 10:26 AM
Basically, I have a persistant store for certain objects/variables that I use for "run once" case. In this case, ApplicationMenuItems, but the issue is that if you've rebooted your phone then the menu items need to be reregistered. At the point, my variable/flag is still set to show that the menu items have been registered and thus, will not register them again unless you remove and re-install the app ... o_O
08-11-2011 01:10 PM - edited 08-11-2011 01:52 PM
Yes, but I use that to mean 'reset'. In other words, at start-up time, if the RuntimeStore object is not present, the application knows the device has been restarted or the application is freshly installed.
08-11-2011 01:42 PM
yes you can detect battery pull or device restart , just make your application autostart and implement SystemListener in your application , you will get call on powerUp().