开发者

Kill my application after finish

开发者 https://www.devze.com 2023-01-31 05:03 出处:网络
How to kill my application after call finish? (i can see my app in HTC\'s phone, but i fini开发者_开发知识库shed that activity anyway)There\'s really no need for this, Android automatically decides w

How to kill my application after call finish?

(i can see my app in HTC's phone, but i fini开发者_开发知识库shed that activity anyway)


There's really no need for this, Android automatically decides when to kill apps. However, you can, if you need to, kill it using:

Process.killProcess(Process.myPid());


this.finish() terminates my applications fine.

Have you looked in LogCat to see if anything is reported when you execute finish()??

0

精彩评论

暂无评论...
验证码 换一张
取 消