@Override protected void onDestroy() { // Free the native resources NativeManager.nativeFree(); super.onDestroy(); }