Difference between finish() and System.exit(0)
问题 I'm talking about programming in android. In early days I thought that, finish() closes current activity and go back to the previous in Activity stack, and System.exit(0) closes the whole application . But I was wrong. I made a small experiment and understood that Both will finish only the current Activity . The only differences that I could notice is that, in Android 2.3.3 The ActivityResult is propagated back to onActivityResult() using finish() . Whereas onActivityResult() not called for