Add a method to tell if the user exited main in the Android Java code
Add a fix for the case of launching another activity from your game on Android and then returning to the game after it finishes - which turns out to be ugly but necessary.