转载自:http://blog.csdn.net/intheair100/article/details/39061473

程序正常启动:onCreate()->onStart()->onResume();

onCreate之后就会执行onStart,此时画面已经显示出来了,但还不能交互;然后执行onResume,此时可以与用户交互了。

正常退出:onPause()->onStop()->onDestory()

一个Activity启动另一个Activity: onPause()->onStop(), 再返回:onRestart()->onStart()->onResume()

程序按back 退出: onPause()->onStop()->onDestory(),再进入:onCreate()->onStart()->onResume();
程序按home 退出: onPause()->onStop(),再进入:onRestart()->onStart()->onResume();

最新文章

  1. linux-centos6.5之ssh配置
  2. 【项目】百度搜索广告CTR预估
  3. Linux下的SVN服务器搭建
  4. [转]Centos7下caffe的安装
  5. C# Rotating Oval
  6. C#中抽象类和接口
  7. 用户输入密码隐藏之getpass的使用
  8. 老李分享:pep8 python代码规范
  9. 简单背包问题(0032)-swust oj
  10. [Swift]LeetCode451. 根据字符出现频率排序 | Sort Characters By Frequency
  11. python 基础 列表
  12. D. Cutting Out 二分
  13. linux基本网络配置
  14. poj 1703 - Find them, Catch them【带权并查集】
  15. CentOS 服务器安全设置 --摘抄自https://www.kafan.cn/edu/8169544.html
  16. Homebrew替换源
  17. Sorted sets
  18. 计算服务器的pv量算法
  19. 洛谷 P1341 无序字母对 解题报告
  20. 给嵌入式ARM+Linux的初学者

热门文章

  1. 使用 git 来管理 PCB 版本
  2. C++第一次作业(循环语句的使用)
  3. 罗列Python标准模块
  4. 二维数组初始化 遍历 动态赋值 内存图 Day08
  5. Gym - 101480D_Digit Division
  6. 【iOS知识学习】_int、NSInteger、NSUInteger、NSNumber的差别和联系
  7. IDEA使用中文api鼠标提示的设置
  8. oracle函数 end
  9. Redis源码解析:02链表
  10. Android ListView显示底部的分割线