@Override
    public void onDestroyView() {
        logger.fine("onDestroyView");
        if (splashImageView != null && splashImageView.getParent() != null) {
            ((ViewGroup) splashImageView.getParent()).removeView(splashImageView);
        }
        if (view.getParent() != null) {
            ((ViewGroup) view.getParent()).removeView(view);
        }
        if (frameLayout != null && frameLayout.getParent() != null) {
            ((ViewGroup) frameLayout.getParent()).removeView(frameLayout);
        }
        view.removeOnLayoutChangeListener(this);

        splashImageView = null;
        frameLayout = null;
        view = null;
        JmeAndroidSystem.setView(null);

        super.onDestroyView();
    }
Called by the Android system each time the Activity is destroyed or recreated.
For jME, we clear references to the GLSurfaceView.
jme3-android/src/main/java/com/jme3/app/AndroidHarnessFragment.java