How to run BlackBerry application in Background

2019-06-02 08:54发布

问题:

I am working on a BlackBerry Application which requires the application be running once its sent to the background also. I would really appreciate it if someone could guide me to any tutorials related to running background services in BlackBerry.

回答1:

Background Application is a kind of process so you should extend Application instead of extending Uiapplication . In your main class implement all your code. You can also see this StackOverflow question for an example: Blackberry - Running Background Application



回答2:

RIM has posted an article about running applications in background on their support forum:
Make a running UI application go to the background and resume in the foreground



回答3:

You can use Alternate Entry Points to make your application run in the background. Check the link below for assistance

http://docs.blackberry.com/en/developers/deliverables/23567/Always_on_1380986_11.jsp