If you’re launching the game as a separate activity, I found that I needed both the kill process and finish() for my game to work. If I didn’t, restarting the game would cause some stuff not to be initiatised, onEnter not triggered, etc. So you should use:

public static void terminateProcess(){
me.finish(); // so you can get info out of your game
android.os.Process.killProcess(android.os.Process.myPid()); // kills it proper
}