android - I want kill app , but my app suspend condition. how can I surely kill app? -


this question has answer here:

if press button ,kill app app suspend condition. uses

      public void onclick(view v){                  movetasktoback(true);             finish();             android.os.process.killprocess(android.os.process.mypid());         }     }); } 

but app suspend onresume .

surely , how can kill app?

use this:

getactivity().finish(); system.exit(0); 

or this:

finish(); 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -