Example #1
0
  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();
  }
Example #2
0
 @Override
 protected void onPrepareDialog(int id, Dialog dialog) {
   gameLoopGui.onPrepareDialog(id, dialog);
 }
Example #3
0
 @Override
 protected Dialog onCreateDialog(int id) {
   return gameLoopGui.onCreateDialog(id);
 }