since.2006  

经常看过一段时间后又忘记了,记录下以后备查。:)

一般启动

onCreate -> onStart -> onResume

调用另一个Activity
(1) 当前的activity
(2) 待调用的activity

onPause (1) -> onCreate (2) -> onStart (2) -> onResume (2) -> onStop (1)

返回原Activity
(1) 待返回的activity
(2) 当前的activity
如按Back键返回

onPause (2) -> onRestart (1) -> onStart (1) -> onResume (1) -> onStop (2) -> onDestory (2)

结束退出
如程序调用finish()结束程序

onPause -> onStop -> onDestory

回收后再启动

onCreate -> onStart -> onResumt

Posted by hee at 12:03 PM | Permalink | 评论(0)