android - I want kill app , but my app suspend condition. how can I surely kill app? -
this question has answer here:
- is quitting application frowned upon? 37 answers
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
Post a Comment