04-22 09:23:47.315 13380-13380/com.example.chenpengchao.myapplication E/TAG: onCreate()1
04-22 09:23:47.317 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()1
04-22 09:23:47.317 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()1
04-22 09:23:47.348 13380-13380/com.example.chenpengchao.myapplication E/TAG: onPause()1
04-22 09:23:47.351 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStop()1
04-22 09:23:59.653 13380-13380/com.example.chenpengchao.myapplication E/TAG: onRestart()1
04-22 09:23:59.676 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()1
04-22 09:23:59.676 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()1
04-22 09:24:12.970 13380-13380/com.example.chenpengchao.myapplication E/TAG: onPause()1
04-22 09:24:13.020 13380-13380/com.example.chenpengchao.myapplication E/TAG: onCreate()2
04-22 09:24:13.021 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()2
04-22 09:24:13.021 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()2
04-22 09:24:13.458 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStop()1
04-22 09:23:47.317 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()1
04-22 09:23:47.317 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()1
04-22 09:23:47.348 13380-13380/com.example.chenpengchao.myapplication E/TAG: onPause()1
04-22 09:23:47.351 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStop()1
04-22 09:23:59.653 13380-13380/com.example.chenpengchao.myapplication E/TAG: onRestart()1
04-22 09:23:59.676 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()1
04-22 09:23:59.676 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()1
04-22 09:24:12.970 13380-13380/com.example.chenpengchao.myapplication E/TAG: onPause()1
04-22 09:24:13.020 13380-13380/com.example.chenpengchao.myapplication E/TAG: onCreate()2
04-22 09:24:13.021 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStart()2
04-22 09:24:13.021 13380-13380/com.example.chenpengchao.myapplication E/TAG: onResume()2
04-22 09:24:13.458 13380-13380/com.example.chenpengchao.myapplication E/TAG: onStop()1
两个activity进行切换,第一次启动onCreate()--onStart()--onResume(),然后锁屏,执行onPause()--onStop();然后点亮屏幕,
onRestart()--onResume();然后跳转到第二个界面,activity1先执行onPause();然后activity2执行onCreate()--onStart()
--onResume();activity2可见之后,activity1才执行onStop();