当前位置:网站首页>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
边栏推荐
- Pico neo3 Unity打包设置
- Evolution and New Choice of Streaming Structured Data Computing Language
- Production and optimization of Unity game leaderboards
- maxwell concept
- 联想集团:2022/23财年第一季度业绩
- 1081 检查密码 (15 分)
- 1091 N-Defensive Number (15 points)
- Item 2 - Annual Income Judgment
- 【软件测试】(北京)字节跳动科技有限公司二面笔试题
- 网络电话软件或迎整顿 “免费”通话须迈安全关
猜你喜欢
随机推荐
My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
Unity3D 学习路线?
2021-08-11 for循环结合多线程异步查询并收集结果
联想集团:2022/23财年第一季度业绩
1002 写出这个数 (20 分)
easyrecovery15数据恢复软件收费吗?功能强大吗?
cdc连sqlserver异常对象可能有无法序列化的字段 有没有大佬看得懂的 帮忙解答一下
4.1-支持向量机
求职简历这样写,轻松搞定面试官
Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引
机器学习总结(二)
prometheus学习4Grafana监控mysql&blackbox了解
js判断图片是否存在
【推荐系统】:协同过滤和基于内容过滤概述
项目1-PM2.5预测
从何跟踪伦敦金最新行情走势?
1036 跟奥巴马一起编程 (15 分)
你是如何做好Unity项目性能优化的
网络电话软件或迎整顿 “免费”通话须迈安全关
TF通过feature与label生成(特征,标签)集合,tf.data.Dataset.from_tensor_slices