[Android] Add the test case about onPause and onResume.