Ejemplo n.º 1
0
 /**
  * This is an override function from surfaceHolder. Did use it in my code
  *
  * @param holder
  */
 public void surfaceDestroyed(SurfaceHolder holder) {
   boolean retry = true;
   openingDrawThread.setFlag(false);
   while (retry) {
     try {
       openingDrawThread.join();
       retry = false;
     } catch (InterruptedException e) {
     }
   }
 }
Ejemplo n.º 2
0
 /**
  * This function create the surface and star the drawing thread.
  *
  * @param holder
  */
 public void surfaceCreated(SurfaceHolder holder) {
   openingDrawThread.setFlag(true);
   openingDrawThread.start();
 }