[英]Android Force Close Handling Programmatically
I am working on android app. 我正在使用android应用。 What i want is to handle Force Close Error that is when ever a force close occurs I could perform a certain action instead of that force close popup appearance.
我想要的是处理“强制关闭”错误,即当发生强制关闭时,我可以执行某种操作来代替该强制关闭弹出窗口外观。 for eg a method gets called on a forceclose
例如在强制关闭时调用方法
public void forcecloseoccurs(){
Toast.show("force closed");
}
you can not control force closed pop up directly. 您无法控制强制关闭直接弹出。 Check in your logs what is the error/exception which is causing force close.
在日志中检查什么是导致强制关闭的错误/异常。 eg if its NullPointerException, you should try handling that.
例如,如果其NullPointerException,则应尝试处理它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.