Exemplo n.º 1
0
 @Override
 public void onResume() {
   super.onResume();
   Log.d(TAG, "onResume");
   if (engine.isAlive()) {
     engine.resumeEngine();
   }
   if (gameView != null) {
     gameView.onResume();
   }
   Log.d(TAG, "finished resuming");
 }
Exemplo n.º 2
0
  @Override
  public void onDestroy() {
    super.onDestroy();
    Log.d(TAG, "onDestroy");
    engine.end();

    if (engine.isAlive()) {
      Log.w(TAG, "Engine is still alive!");
    } else {
      Log.i(TAG, "Engine is dead.");
      engine = null;
    }
    pipe.close();
    pipe = null;
  }