Activity生命周期

步骤:点击应用程序


01-20 10:05:40.547    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onCreate
01-20 10:05:40.907    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onStart
01-20 10:05:40.907    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onResume

然后:点击打开SecondActivity按钮


01-20 10:11:30.237    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onPause
01-20 10:11:30.357    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onCreate
01-20 10:11:30.487    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onStart
01-20 10:11:30.497    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onResume
01-20 10:11:32.107    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onStop

再点击打开ThirdActivity按钮


01-20 10:13:52.657    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onPause
01-20 10:13:52.767    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onCreate
01-20 10:13:52.827    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onStart
01-20 10:13:52.827    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onResume

接下来再点击返回键,返回到 SecondActivity


01-20 10:16:30.137    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onPause
01-20 10:16:30.287    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onResume
01-20 10:16:30.967    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onStop
01-20 10:16:30.967    1265-1265/com.yonyou.activity I/System.out﹕ ThirdActivity->onDestroy

接下来再点击返回键,返回到 FirstActivity


01-20 10:18:31.967    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onPause
01-20 10:18:32.007    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onRestart
01-20 10:18:32.007    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onStart
01-20 10:18:32.007    1265-1265/com.yonyou.activity I/System.out﹕ FirstActivity->onResume
01-20 10:18:33.967    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onStop
01-20 10:18:33.967    1265-1265/com.yonyou.activity I/System.out﹕ SecondActivity->onDestroy



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值