示例#1
0
  @Override
  protected void onResume() {
    super.onResume();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
      updateSystemUiVisibility();
    }
    // OK, config should be initialized, we can query for screen rotation.
    updateScreenRotation();

    Log.i(TAG, "onResume");
    if (mSurfaceView != null) {
      mSurfaceView.onResume();
    } else {
      Log.e(TAG, "mGLSurfaceView really shouldn't be null in onResume");
    }

    gainAudioFocus(this.audioManager, this.audioFocusChangeListener);
    NativeApp.resume();
  }