[Android] XWalkViewInternal refactor

Call extensionManager's activity life cycle related codes in
onActivityStateChange. For now the its onPause() is called with
the ActivityState.STOPPED and onResume() is called with the
ActivityState.STARTED, which are wrong.