Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
rwrife
Posts: 23
Registered: ‎04-29-2009
My Device: Not Specified
Accepted Solution

Auto run after soft reset

I wrote an application that appears as an option in the options screen and it works great in the simulator and on the device after and installation, however I cannot get the application to run on the device after a soft reset. I've got it set to "autorun after startup" on the project properties. Is there anything else I need to do to make this work?
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Auto run after soft reset

Implement a SystemListener and put you code which adds the OptionsProvider in the powerUp method.  Make sure it does do it twice on real boot up.
Please use plain text.
New Developer
rwrife
Posts: 23
Registered: ‎04-29-2009
My Device: Not Specified

Re: Auto run after soft reset

What do you mean by "make sure it does it twice"?
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Auto run after soft reset

Oppss, the missing not.....  I meant make sure it does NOT do it twice.  First time I did one of these I added in the autostart part (main processing) which is run as part of 'cold' start, then it got added again in the powerUp processing which comes a bit later when the BB is ready for business.

Please use plain text.