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
Start the second activity with startActivityForResult and in the second activity return a value, that once in the onActivityResult method of the first activity closes the main application. I think this is the correct way Android does it.