Android -- Activity,Fragment lifecycle
Activity Lifecyce

Fragment Lifecycle:

程序运行:
09-16 13:59:22.883 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onCreate1
09-16 13:59:22.903 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onCreate2
09-16 13:59:22.903 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksPresenter --debug: TasksPresenter
09-16 13:59:22.903 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onCreate3
09-16 13:59:22.903 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onAttach
09-16 13:59:22.903 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onCreate
09-16 13:59:22.993 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onCreateView
09-16 13:59:22.993 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onStart
09-16 13:59:22.993 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onStart
09-16 13:59:22.993 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onResume
09-16 13:59:22.993 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onResume
按返回键回到桌面:
09-16 13:59:56.633 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onPause
09-16 13:59:56.633 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onPause
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onStop
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onStop
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onDestroyView
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onDestroy
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onDetach
09-16 13:59:57.093 19022-19022/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onDestroy
按home键回到桌面:
09-16 14:03:10.973 22295-22295/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onPause
09-16 14:03:10.973 22295-22295/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onPause
09-16 14:03:11.443 22295-22295/com.example.android.architecture.blueprints.todomvp.mock D/TasksFragment --debug: onStop
09-16 14:03:11.443 22295-22295/com.example.android.architecture.blueprints.todomvp.mock D/TasksActivity --debug: onStop
Android -- Activity,Fragment lifecycle的更多相关文章
- 【转】Android Activity/Fragment Lifecycle
原文来自:http://stormzhang.github.io/android/2014/08/08/activity-fragment-lifecycle/ 说Activity和Fragment是 ...
- Android:Activity+Fragment及它们之间的数据交换.
Android:Activity+Fragment及它们之间的数据交换 关于Fragment与Fragment.Activity通信的四种方式 比较好一点的Activity+Fragment及它们之间 ...
- [转]Android:Activity+Fragment及它们之间的数据交换(一)
2014-05-18 来源:Android:Activity+Fragment及它们之间的数据交换(一) 简介: 为什么要用Fragment?使用Fragment可以在一个Acti ...
- Android:Activity+Fragment及它们之间的数据交换(一)
简单介绍: 为什么要用Fragment?使用Fragment能够在一个Activity中实现不同的界面. Fragment与Fragment之间的动画切换,远比Activity与Activity之间的 ...
- Android Activity Fragment 生命周期
从开源项目中看到 这个,就情不自禁的收藏了~ https://github.com/xxv/android-lifecycle
- android Activity,Fragment,Application内存状态监听及等级
@Override public void onTrimMemory(int level) { super.onTrimMemory(level); switch (level){ case TRIM ...
- Android中Fragment与Activity之间的交互(两种实现方式)
(未给Fragment的布局设置BackGound) 之前关于Android中Fragment的概念以及创建方式,我专门写了一篇博文<Android中Fragment的两种创建方式>,就如 ...
- Android Fragment使用(三) Activity, Fragment, WebView的状态保存和恢复
Android中的状态保存和恢复 Android中的状态保存和恢复, 包括Activity和Fragment以及其中View的状态处理. Activity的状态除了其中的View和Fragment的状 ...
- Android Activity和Fragment的转场动画
Android Activity和Fragment的转场动画 Activity转场动画 Activity的转场动画是通过overridePendingTransition(int enterAnim, ...
随机推荐
- Windows 10一周年更新正式版官方ISO镜像(1607)
微软已经开始推送Win10一周年更新正式版系统,按照此前预告微软官方网站也同步推出了Win10一周年更新正式版ISO官方镜像下载,版本已经升级到最新的1607,也就是Win10 Build 1607, ...
- python基础回顾1
定义 tuple(元组), list (表) #!/usr/bin/env python # encoding: utf-8 a = 10 #定义一直变量,无需声明 s1 = (2,1.3,'love ...
- 【UOJ#228】基础数据结构练习题 线段树
#228. 基础数据结构练习题 题目链接:http://uoj.ac/problem/228 Solution 这题由于有区间+操作,所以和花神还是不一样的. 花神那道题,我们可以考虑每个数最多开根几 ...
- Mysql连表之多对多
说明 这里的文章是接着前面 Mysql连表一对多 写的. 连表多对多 可以理解成一夫多妻和一妻多夫. 男人表: nid name 1 xxx 2 yyy 3 zzz 女人表: nid name 1 a ...
- jsp中iframe填充装个页面
首先要引入这个css,由于我之前没有引入这个,导致iframe的高度一只是默认高度,没有改变 <style type="text/css"> body, html { ...
- Javascript和HTML:
JavaScript一种直译式脚本语言,是一种动态类型.弱类型.基于原型的语言,内置支持类型.它的解释器被称为JavaScript引擎,为浏览器的一部分,广泛用于客户端的脚本语言,最早是在HTML(标 ...
- '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp error
'0000-00-00 00:00:00' can not be represented as java.sql.Timestamp error 异常现象 ### Cause: java.sql.SQ ...
- Alpha阶段项目展示
1.团队简介 韩青长 前端工程师 我是韩青长,技术小白,抱着对软工的好奇和对未来工作的憧憬选了这门课.暂时选择了测试的工作,也对开发和UI有一定兴趣.从前上帝创造了我们,现在轮到我们来创造自己的软件了 ...
- 正则去掉img标签的style样式
$body = '<div style="width:100px; height:20px;"><img alt="test" src=&qu ...
- gis数据格式转换(数据导入)ConvertFeaCls
本文主要对数据导入等里 常用的不同格式数据创建.转换等 进行代码示例.主要用到IFeatureDataConverter.ConvertFeatureClass方法. 代码如下,难度不大,只是个技巧问 ...