Kill my application after completion

How to kill my application after ending a call?

(I see my application on the HTC phone, but I ended this activity anyway)

+4
source share
2 answers

This is not necessary, Android automatically decides when to kill applications. However, if necessary, you can kill him using:

Process.killProcess(Process.myPid()); 
+9
source

this.finish () terminates my applications.

Do you go to LogCat to find out if anything is reported about the completion of the finish () function ??

0
source

Source: https://habr.com/ru/post/1332203/


All Articles