close #3861:fixed NativeActivity issue ANR on android 2.3 when press hardware button.
Merge pull request #5242 from Dhilan007/develop_crash

close #3861:fixed NativeActivity issue ANR on android 2.3 when press hardware button.