예제 #1
0
  public void stop() {
    Log.i("OF", "onStop");
    disableTouchEvents();
    onStop();
    for (OFAndroidObject object : OFAndroidObject.ofObjects) {
      object.onStop();
    }

    unlockScreenSleep();
    /*if(OFAndroidSoundStream.isInitialized())
    OFAndroidSoundStream.getInstance().stop();*/
  }
예제 #2
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;
  }