打开应用时调用的方法:
onCreate
onStart
onResume
旋转屏幕时调用的方法:
onPause
onSaveInstanceState
onStop
onDestroy
onCreate
onStart
onRestoreInstanceState
onResume
按下home键时调用的方法:
onPause
onSaveInstanceState
onStop
返回到应用时调用的方法:
onRestart
onStart
onResume
按下返回键时调用的方法:
onPause
onStop
onDestroy