コード例 #1
0
ファイル: GameActivity.java プロジェクト: Xayvay/BombSurge
  @Override
  protected void onStop() {
    try {
      gView.getThread().setRunning(false);
      gView = null;
    } catch (NullPointerException e) {
    }

    running = false;
    super.onStop();
  }
コード例 #2
0
 /** Method for performing the appropriate action when the ACTION button is long pressed. */
 public void actionButtonLongPress() {
   if (myBTCommunicator != null) {
     mView.getThread().mActionPressed = true;
     performActionCommand(ACTION_BUTTON_LONG);
   }
 }
コード例 #3
0
ファイル: Game.java プロジェクト: TimovNiedek/ResDev
 public void onResume() {
   super.onResume();
   gameView = new GameView(this);
   setContentView(gameView);
   gameThread = gameView.getThread();
 }