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
Trusted Contributor
Davidf65
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

How to restart a background listener app on device reboot?

hey everyone, I have a background app with a listener listening for text messages. I want my app to run even when a user reboots his/her handset. How could I achieve this?

 

Thanks David

Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10

Re: How to restart a background listener app on device reboot?

select Auto-run on start up in App-Descriptor.xml

 

Thanks.

Trusted Contributor
Davidf65
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: How to restart a background listener app on device reboot?

Thanks Pradeep, but it works only for hard reboots. What about soft reboots? How could I register my app to listen for soft reboots?

Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10

Re: How to restart a background listener app on device reboot?

Hi David,

 

You can find some useful discussions in the following post about your issue.

 

http://supportforums.blackberry.com/t5/Java-Development/Creating-Auto-run-applications-on-startup-in...

 

Thanks.

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to restart a background listener app on device reboot?

there is no need to re-register on soft boots as your listener stays valid.

if you want to react to soft-off/on events you can register a powerlistener.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
christlin
Posts: 18
Registered: ‎02-23-2012
My Device: Blackberry Curve 9360

Re: How to restart a background listener app on device reboot?

 Select  Properties -> Application then select the

Options Auto-run on startup (This will make your application auto-run on hard reset)