示例#1
0
 public void stopAnimation() {
   Log.d(LOG_TAG, "stopAnimation");
   if (dt != null) {
     dt.flag = false;
     Thread t = dt;
     dt = null;
     t.interrupt();
   }
 }
示例#2
0
 public void surfaceDestroyed(SurfaceHolder holder) {
   if (dt != null) {
     dt.flag = false;
     dt = null;
   }
 }