/* * Resume the game when it is ready to be visible. * This will be called after onCreate or after onPause * This message assumes that the Pause Menu was displayed * during the onPause process, so the user will use that to * resume the game. */ @Override protected void onResume() { Log.d(LOGGER, "Resuming..."); super.onResume(); if (firstRun) { Log.d(LOGGER, "This is the first run of the activity"); } else { Log.d(LOGGER, "This activity has run before"); } // Initialize the game as needed, and set it as this activity's content if (game == null || game.isStopped()) { game = new PopAllTheThingsGame(this, firstRun, randomBotPurchased); firstRun = false; setContentView(game); } }