ActivityName.this.finish(); android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0);