Android activity生命周期
一直以来以为是先onStop再finish,汗死。。
开始创建主activity到跳转到第二个activity
07-13 09:32:51.202 9832-9832/androidstudy.androidartstudy01 D/MainActivity: onCreate:
07-13 09:32:51.202 9832-9832/androidstudy.androidartstudy01 D/MainActivity: onStart:
07-13 09:32:51.205 9832-9832/androidstudy.androidartstudy01 D/MainActivity: onResume:
07-13 09:34:39.877 14315-14315/androidstudy.androidartstudy01 D/MainActivity: onPause:
07-13 09:34:39.897 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onCreate:
07-13 09:34:39.897 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onStart:
07-13 09:34:39.897 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onResume:
07-13 09:34:40.163 14315-14315/androidstudy.androidartstudy01 D/MainActivity: onStop:
从第二个activity返回到主activity
07-13 09:36:19.802 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: finish:
07-13 09:36:19.858 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onPause:
07-13 09:36:19.885 14315-14315/androidstudy.androidartstudy01 D/MainActivity: onRestart:
07-13 09:36:19.885 14315-14315/androidstudy.androidartstudy01 D/MainActivity: onStart:
07-13 09:36:19.885 14315-14315/androidstudy.androidartstudy01 D/MainActivity: onResume:
07-13 09:36:20.168 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onStop:
07-13 09:36:20.168 14315-14315/androidstudy.androidartstudy01 D/SecondActivity: onDestroy:
从主activity点击返回键返回到主屏幕
07-13 09:42:00.694 22222-22222/androidstudy.androidartstudy01 D/MainActivity: finish:
07-13 09:42:00.730 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onPause:
07-13 09:42:01.194 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onStop:
07-13 09:42:01.194 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onDestroy:
从主activity点击Home键返回到主屏幕再点击进入应用程序
07-13 09:43:32.165 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onPause:
07-13 09:43:32.588 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onStop:
07-13 09:43:41.592 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onRestart:
07-13 09:43:41.592 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onStart:
07-13 09:43:41.592 22222-22222/androidstudy.androidartstudy01 D/MainActivity: onResume: