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

Please use plain text.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

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

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

 

Thanks.

Please use plain text.
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?

Please use plain text.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

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.

 

Please use plain text.
Developer
simon_hain
Posts: 15,932
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

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
Please use plain text.
Contributor
christlin
Posts: 18
Registered: ‎02-23-2012
My Device: Blackberry Curve 9360
My Carrier: Vodafone

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)

Please use plain text.