Exemplo n.º 1
0
  public void Stop() {
    boolean retry = true;
    _loopThread.setRunning(false);

    //        while (retry) {
    // try {
    // ожидание завершение потока
    //                _loopThread.join();
    //  _loopThread.stop();
    //                retry = false;
    // } catch (InterruptedException e) {
    //  e.printStackTrace();

    // }
    //        }
    Log.d("GameViewSurface", "Stoped!");
  }
Exemplo n.º 2
0
 public void Start() {
   Log.d("GameViewSurface", "Started!");
   _loopThread.setRunning(true);
   _loopThread.start();
 }