我怎么能叫从用户界面应用程序+黑莓后台应用程序 [英] how can i call background application from ui Application+blackberry

查看:118
本文介绍了我怎么能叫从用户界面应用程序+黑莓后台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做的UIApplication
如果我点击一个按钮,然后在后台线程必须启动它应该运行,即使我的应用程序退出时我怎么能做到这一点。

i am trying to make a uiapplication If i click on a button then a background thread must start which should run even when my application is exited how can i do that

我创建一个后台线程,但它会阻止时,应用程序退出。

I created a background thread but it gets stop when the app exits.

推荐答案

创建您的应用程序,在后台自动运行,并启动一个系统模块。你可以有一个备选入口点,这将传递一个参数传递给主应用程序来启动你的图形用户界面。当您退出GUI也不会退出整个应用程序。

Create your application as a system module that starts automatically and runs in the background. You can have an alternate entry point that will pass an argument to the main app to start your GUI. When you exit the GUI it won't exit the entire application.

这篇关于我怎么能叫从用户界面应用程序+黑莓后台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆