当前位置:网站首页>Four states of Activity
Four states of Activity
2022-08-11 07:51:00 【is a small A】
An Activity has essentially four states: running, paused, stopped, destroyed
Running:
In the foreground of the screen (at the top of the current task stack)
The Activity at this time is at the top of the stack, is visible, and can interact with the user
Pause:
Loss focus, but still visible to user (overlaying Activity may be transparent or not fully occluded)
When an Activity loses focus and cannot interact with the user, but is still visible, it is in a paused state
When a new non-fullscreen Activity or a transparent Activity is placed at the top of the stack, the Activity is in a paused state;
At this time, all kinds of data of Activity are still saved;
Only when the system memory is extremely low, the system will automatically destroy the Activity
Stop:
Completely covered by another Activity
When an Activity is completely covered by another Activity, or click the HOME button to exit the background, the Activity at this time is in a stopped state
The various data of the Activity at this time are still saved
When the system needs to use the content elsewhere, the system will automatically destroy the Activity
Destroy:
Exit, completely destroyed
When we click the return button or the system will remove the Activity from the stack and destroy it when the memory is not enough, it will be recycled by the system. At this time, the Activity will be in the destroyed state
边栏推荐
- 2022-08-10 mysql/stonedb-慢SQL-Q16-耗时追踪
- Use tf.argmax in Tensorflow to return the index of the maximum value of the tensor along the specified dimension
- SQL滑动窗口
- 关于Android Service服务的面试题
- Redis源码-String:Redis String命令、Redis String存储原理、Redis字符串三种编码类型、Redis String SDS源码解析、Redis String应用场景
- oracle19c does not support real-time synchronization parameters, do you guys have any good solutions?
- MindManager2022全新正式免费思维导图更新
- Douyin API interface
- 1056 组合数的和 (15 分)
- 【推荐系统】:协同过滤和基于内容过滤概述
猜你喜欢
【推荐系统】:协同过滤和基于内容过滤概述
tf中矩阵乘法
1003 我要通过 (20 分)
关于Excel实现分组求和最全文档
分布式锁-Redission - 缓存一致性解决
Redis source code: how to view the Redis source code, the order of viewing the Redis source code, the sequence of the source code from the external data structure of Redis to the internal data structu
1046 punches (15 points)
2.1-梯度下降
1051 Multiplication of Complex Numbers (15 points)
年薪40W测试工程师成长之路,你在哪个阶段?
随机推荐
详述MIMIC 的ICU患者检测时间信息表(十六)
测试用例很难?有手就行
LeetCode刷题系列 -- 46. 全排列
Waldom Electronics宣布成立顾问委员会
2.1-梯度下降
联想集团:2022/23财年第一季度业绩
流式结构化数据计算语言的进化与新选择
1046 punches (15 points)
1.1-回归
Depth (relay supervision)
Pico neo3在Unity中的交互操作
1106 2019 Sequence (15 points)
6月各手机银行活跃用户较快增长,创半年新高
【sdx62】XBL设置共享内存变量,然后内核层获取变量实现
MindManager2022全新正式免费思维导图更新
关于Android Service服务的面试题
【LeetCode】链表题解汇总
【LeetCode每日一题】——682.棒球比赛
oracle19c不支持实时同步参数,请教一下大佬们有什么好的解决办法吗?
Implementation of FIR filter based on FPGA (5) - FPGA code implementation of parallel structure FIR filter