コード例 #1
0
 @Override
 public void onSurfaceDestroyed(SurfaceHolder holder) {
   super.onSurfaceDestroyed(holder);
   boolean retry = true;
   painting.stopPainting();
   while (retry) {
     try {
       painting.join();
       retry = false;
     } catch (InterruptedException e) {
     }
   }
 }
コード例 #2
0
    @Override
    public void onDestroy() {
      super.onDestroy();

      painting.stopPainting();
    }