[英]Kill my application after finish
How to kill my application after call finish? 电话结束后如何杀死我的应用程序?
(i can see my app in HTC's phone, but i finished that activity anyway) (我可以在HTC的手机上看到我的应用,但我还是完成了那个活动)
There's really no need for this, Android automatically decides when to kill apps. 实际上没有必要,Android会自动决定何时杀死应用程序。 However, you can, if you need to, kill it using:
但是,如果需要,您可以使用以下命令将其杀死:
Process.killProcess(Process.myPid());
this.finish() terminates my applications fine. this.finish()终止我的应用程序。
Have you looked in LogCat to see if anything is reported when you execute finish()?? 您是否查看了LogCat以查看执行finish()时是否报告了任何内容?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.