Пример #1
0
  @Override
  protected void onDestroy() {
    if (Media3D.DEBUG) {
      Log.d(TAG, "onDestroy");
    }
    unloadPage(mPortalPage);
    mPortalPage = null;

    unloadPage(mWeatherPage);
    mWeatherPage = null;

    unloadPage(mPhotoPage);
    mPhotoPage = null;

    unloadPage(mVideoPage);
    mVideoPage = null;

    mOrientationListener.disable();
    mOrientationListener = null;

    // Remove references of all actors, especially for Text bitmap
    mStage.removeAll();
    super.onDestroy();
  }