I\'d like to force stop my Android application when I click closeButton. This is my code.
protected void onCreate(Bundle savedInstanceState) { this.setCon
Why not to make a Shell-Call to ActivityManager?
try { Runtime.getRuntime().exec("am force-stop com.me.myapp"); } catch (IOException e) { e.printStackTrace(); }