@Override protected void onStop() { try { gView.getThread().setRunning(false); gView = null; } catch (NullPointerException e) { } running = false; super.onStop(); }
/** 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); } }
public void onResume() { super.onResume(); gameView = new GameView(this); setContentView(gameView); gameThread = gameView.getThread(); }