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