android API Guide——Notes
来源:互联网 发布:java在线编程 编辑:程序博客网 时间:2024/06/05 00:32
An application usually consists of multiple activities that are loosely bound to each other. Typically, one activity in an application is specified as the "main" activity, which is presented to the user when launching the application for the first time. Each activity can then start another activity in order to perform different actions. Each time a new activity starts, the previous activity is stopped, but the system preserves the activity in a stack (the "back stack"). When a new activity starts, it is pushed onto the back stack and takes user focus. The back stack abides to the basic "last in, first out" stack mechanism, so, when the user is done with the current activity and presses theBack button, it is popped from the stack (and destroyed) and the previous activity resumes. (The back stack is discussed more in theTasks and Back Stack document.)
When an activity is stopped because a new activity starts, it is notified of this change in state through the activity's lifecycle callback methods. There are several callback methods that an activity might receive, due to a change in its state—whether the system is creating it, stopping it, resuming it, or destroying it—and each callback provides you the opportunity to perform specific work that's appropriate to that state change. For instance, when stopped, your activity should release any large objects, such as network or database connections. When the activity resumes, you can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the activity lifecycle.
- android API Guide——Notes
- Android API Guide for Media Apps —— 媒体应用
- Android API guide Notification
- Android API Guide学习笔记
- Android API Guide for Animation and Graphics(一)—— 动画与图形(概述)
- Android API Guide for Media and Camera(一)—— 媒体与相机(媒体播放器)
- Android API Guide for Media and Camera(三)—— 媒体与相机(ExoPlayer)
- Android API Guide for Media Apps(一)——概览(Overview)
- Android API Guide for Media and Camera(五)—— 媒体与相机(Camera API)
- notes Fcitx Guide
- Android API Guide 之 User Interface笔记
- Android API Guide 之 User Interface笔记
- Android API Guide --- PropertyAnimation(属性动画)
- <Android API Guide学习记录> -- Activities
- 【译】Android API Guide 之 属性动画
- Google Android API guide learning(a)
- 【APIs — A Strategy Guide】第一章 API的机遇
- Android API Guide for Animation and Graphics(二)—— 动画与图形(属性动画)
- opengl入门系列- openglES 2.0 的 VBO 用法和例子
- 数论类题集
- U盘防毒最强方案(创建删不掉的autorun.inf文件夹)
- 判断点是否在三角形内部
- 2015阿里巴巴校招在线笔试题
- android API Guide——Notes
- CSDN上下载的一些关于Android程序调用Webservice运行不成功的问题
- MySQL数据库基础
- poj 1035 Spell checker
- 括号匹配测试
- cocos2d-x 2.2.1编译报错
- mysql
- C/C++中为二维数组分配内存
- 《修炼Java开发技术 在架构中体验设计模式和算法之美》 - 书摘精要