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