コード例 #1
0
    // part of SurfaceHolder.Callback
    @Override
    public void surfaceDestroyed(SurfaceHolder holder) {
      super.surfaceDestroyed(holder);
      if (PApplet.DEBUG) {
        System.out.println("surfaceDestroyed()");
      }

      /*
      // TODO: Check how to make sure of calling g3.dispose() when this call to
      // surfaceDestoryed corresponds to the sketch being shut down instead of just
      // taken to the background.

      // For instance, something like this would be ok?
      // The sketch is being stopped, so we dispose the resources.
      if (!paused) {
        g3.dispose();
      }
      */
    }
コード例 #2
0
 @Override
 public void surfaceDestroyed(SurfaceHolder holder) {
   super.surfaceDestroyed(holder);
   OFAndroid.onSurfaceDestroyed();
 }
コード例 #3
0
  /*----------------------onBackPressed--------------------------------------------------------------------*/
  public void onBackPressed() {

    Log.d(TAG, "onBackPressed");
    super.surfaceDestroyed(getHolder());
    // MidasNative.onBackPressed();
  }
コード例 #4
0
 @Override
 public void surfaceDestroyed(SurfaceHolder holder) {
   mHaveSurface = false;
   super.surfaceDestroyed(holder);
 }
コード例 #5
0
 @Override
 public void surfaceDestroyed(SurfaceHolder holder) {
   mSurfaceCreated = false;
   mSurfaceDestroyed = true;
   super.surfaceDestroyed(holder);
 }