示例#1
0
 void reportSurfaceDestroyed() {
   if (mSurfaceCreated) {
     mSurfaceCreated = false;
     mSurfaceHolder.ungetCallbacks();
     SurfaceHolder.Callback callbacks[] = mSurfaceHolder.getCallbacks();
     if (callbacks != null) {
       for (SurfaceHolder.Callback c : callbacks) {
         c.surfaceDestroyed(mSurfaceHolder);
       }
     }
     if (DEBUG) Log.v(TAG, "onSurfaceDestroyed(" + mSurfaceHolder + "): " + this);
     onSurfaceDestroyed(mSurfaceHolder);
   }
 }
 @Override
 public void onSurfaceDestroyed(SurfaceHolder holder) {
   super.onSurfaceDestroyed(holder);
   handler.removeCallbacks(timerRefresh);
   handler.removeCallbacks(timerGetImages);
 }
 @Override
 public void onSurfaceDestroyed(SurfaceHolder holder) {
   super.onSurfaceDestroyed(holder);
   Log.d(TAG, ".onSurfaceDestroyed()");
 }