当前位置:网站首页>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中的交互操作

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

TF通过feature与label生成(特征,标签)集合,tf.data.Dataset.from_tensor_slices

无服务器+域名也能搭建个人博客?真的,而且很快

My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful

tf中自减操作;tf.assign_sub()

1091 N-Defensive Number (15 points)

Redis source code-String: Redis String command, Redis String storage principle, three encoding types of Redis string, Redis String SDS source code analysis, Redis String application scenarios

1071 Small Gamble (15 points)

Edge provides label grouping functionality
随机推荐
2022年中国软饮料市场洞察
6月各手机银行活跃用户较快增长,创半年新高
Internet phone software or consolidation of attack must be "free" calls security clearance
1051 Multiplication of Complex Numbers (15 points)
Douyin API interface
CIKM 2022 AnalytiCup Competition: 联邦异质任务学习
【Pytorch】nn.PixelShuffle
Pico neo3 Unity打包设置
1061 判断题 (15 分)
break pad源码编译--参考大佬博客的总结
Edge 提供了标签分组功能
2022-08-09 Group 4 Self-cultivation class study notes (every day)
【软件测试】(北京)字节跳动科技有限公司终面HR面试题
基于FPGA的FIR滤波器的实现(4)— 串行结构FIR滤波器的FPGA代码实现
TF中的四则运算
My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
关于Excel实现分组求和最全文档
查找最新人员工资和上上次人员工资的变动情况
Serverless + domain name can also build a personal blog? Really, and soon
伦敦银规则有哪些?