lacas
lacas

Reputation: 14066

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)

Upvotes: 4

Views: 2247

Answers (2)

neildeadman
neildeadman

Reputation: 3969

this.finish() terminates my applications fine.

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

Upvotes: 0

Joakim Berglund
Joakim Berglund

Reputation: 2871

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

Upvotes: 9

Related Questions