Application pause/resume fix for Android sample NativeActivity.
Merge pull request #2331 from asmorkalov:android_native_activity_finish