黑莓:杀死一个应用程序

时间:2011-10-07 08:20:15

标签: blackberry java-me

我想杀死黑莓中正在运行的应用程序,就像任务管理器一样。有没有办法做到这一点或任何可用的API?

提前致谢。

2 个答案:

答案 0 :(得分:1)

调用此方法来终止UiApplication ....

public void killApp() {
      System.exit(0);
}

答案 1 :(得分:0)

根据其他论坛,以下是我找到的信息。试试这个,如果它可以帮助你

第一种方式:您可能只需要进行硬启动。如果一切都失败,请取出电池。

第二种方式:

Stop a job that is running

 1. In the BlackBerry® Administration Service, on the Devices menu, expand Deployment jobs.
 2. Click Manage deployment jobs.
 3. Search for the job that you want to stop.
 4. In the search results, click the ID of the job that you want to stop. You can only stop jobs with a Running status.
 5. Click Stop Current Execution.
 6. Click Yes - Stop Current Execution.

Stopping a job that is running