onCreate() onStart() onRestart() onResume onPause() onStop() onDestory()
整个生命周期:onCreatet() - onDestory()
可视期 :onStart() - onStop()
获得焦点期:onResume() - onPause();
activity通过onCreate()创建,经过onStart()被显示出来,获得视图,onResume()使得activity获得用户焦点,another activity comes in front of activity,当前activity调用onPause()失去用户焦点,onStop()失去视图,弹出another activity