public void pause() {
    Log.i("OF", "onPause");
    disableTouchEvents();
    mGLView.onPause();
    onPause();

    for (OFAndroidObject object : OFAndroidObject.ofObjects) {
      object.onPause();
    }

    unlockScreenSleep();
  }
  public void stop() {
    Log.i("OF", "onStop");
    disableTouchEvents();
    onStop();
    for (OFAndroidObject object : OFAndroidObject.ofObjects) {
      object.onStop();
    }

    unlockScreenSleep();
    /*if(OFAndroidSoundStream.isInitialized())
    OFAndroidSoundStream.getInstance().stop();*/
  }
Beispiel #3
0
  public void stop() {
    resumed = false;
    Log.i("OF", "onStop");
    disableTouchEvents();
    onStop();

    synchronized (OFAndroidObject.ofObjects) {
      for (OFAndroidObject object : OFAndroidObject.ofObjects) {
        object.onStop();
      }
    }

    if (networkStateReceiver != null) {
      try {
        ofActivity.unregisterReceiver(networkStateReceiver);
      } catch (java.lang.IllegalArgumentException e) {

      }
    }

    sleepLocked = false;
  }