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


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.


Reply
Trusted Contributor
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
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.

Trusted Contributor
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
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.

 

Developer
Posts: 17,026
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Highlighted
Contributor
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)