Application pause/resume fix for Android sample NativeActivity.