@Override protected void onDestroy() { super.onDestroy(); Log.i(TAG, "onDestroy"); mSurfaceView.onDestroy(); NativeApp.audioShutdown(); // Probably vain attempt to help the garbage collector... mSurfaceView = null; audioFocusChangeListener = null; audioManager = null; unregisterCallbacks(); }