简体   繁体   中英

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)

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()??

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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