zoukankan      html  css  js  c++  java
  • 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:

  • 相关阅读:
    Java虚拟机------JVM内存区域
    Java虚拟机------垃圾收集器
    Java虚拟机--------JVM常见参数
    Kafka和的安装与配置
    Kafka介绍与消息队列
    Kafka命令操作
    Kafka深度解析
    Flume架构
    四十三、NPM报错ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
    四十二、在线预览pdf文件
  • 原文地址:https://www.cnblogs.com/baiyi168/p/5665789.html
Copyright © 2011-2022 走看看