简体   繁体   English

崩溃后杀死应用程序

[英]kill application after crash

I haven't manage all errors on my application anymore. 我还没有管理我的应用程序上的所有错误。 So I would like to know if it is possible to Kill the entire app when it crashes? 所以我想知道是否有可能在崩溃时杀死整个应用程序?

(when the message "app MyApp crash, force close" appear, I would like the application to be killed when user clicks on "force close") (当出现“app MyApp crash,force close”消息时,我希望当用户点击“强制关闭”时应用程序被杀死)

This is actually what happens. 这实际上是发生了什么。 If your app crashes with a force close, the entire application is killed. 如果您的应用程序因强制关闭而崩溃,则整个应用程序都将被终止。 So, there is nothing more to "kill". 所以,没有什么可以“杀”了。 All memory occupied by the application (packagename) is freed. 释放应用程序(packagename)占用的所有内存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM