我怎么能叫从用户界面应用程序+黑莓后台应用程序

问题描述:

我试图做的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.