protected void onStop() { super.onStop(); // Fix for user pressing Home during the game. if (!multiplayergame) gameLoopGui.quitDialogPressed = true; gameLoop.stopGameLoop(); gameLoop.soundManager.release(); if (multiplayergame) { GameInit.mMultiplayerService.endBluetooth(); GameInit.mMultiplayerService = null; // Log.d("GAMEINIT", "End Bluetooth"); } // Log.d("GAMEINIT", "onStop"); // You also need to stop the trace when you are done! // Debug.stopMethodTracing(); }
@Override protected void onPrepareDialog(int id, Dialog dialog) { gameLoopGui.onPrepareDialog(id, dialog); }
@Override protected Dialog onCreateDialog(int id) { return gameLoopGui.onCreateDialog(id); }