I have two different activities. The first launches the second one. In the second activity, I call System.exit(0) in order to force the application to close, bu
android.os.Process.killProcess(android.os.Process.myPid()); works fine, but it is recommended to let the Android platform worry about the memory management:-)