如何在后台运行黑莓应用程序
我正在开发一个黑莓应用程序,该应用程序需要在发送到后台后运行。 如果有人可以指导我任何与在 BlackBerry 中运行后台服务相关的教程,我将非常感激。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
后台应用程序是一种进程,因此您应该扩展应用程序而不是扩展 Uiapplication 。在您的主类中实现所有代码。您还可以查看此 StackOverflow 问题作为示例:Blackberry - 运行后台应用程序
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
RIM 在其支持论坛上发布了一篇有关在后台运行应用程序的文章:
使正在运行的 UI 应用程序转到后台并在前台恢复
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
您可以使用备用入口点使您的应用程序在后台运行。检查下面的链接以获取帮助
http://docs.blackberry.com/en /developers/deliverables/23567/Always_on_1380986_11.jsp
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