当前位置:网站首页>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
边栏推荐
猜你喜欢

TF中的One-hot

Test cases are hard?Just have a hand

My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
3.1-分类-概率生成模型

1096 big beautiful numbers (15 points)

项目1-PM2.5预测

【Pytorch】nn.PixelShuffle

1051 Multiplication of Complex Numbers (15 points)

1071 Small Gamble (15 points)

How to choose professional, safe and high-performance remote control software
随机推荐
1081 检查密码 (15 分)
易观分析联合中小银行联盟发布海南数字经济指数,敬请期待!
maxwell concept
MySQL使用GROUP BY 分组查询时,SELECT 查询字段包含非分组字段
Go语言实现Etcd服务发现(Etcd & Service Discovery & Go)
联想集团:2022/23财年第一季度业绩
LeetCode刷题系列 -- 46. 全排列
My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
js判断图片是否存在
国密规范 SM2 SM3 SM4
网络电话软件或迎整顿 “免费”通话须迈安全关
1003 我要通过 (20 分)
Service的两种状态形式
为什么C#中对MySQL不支持中文查询
你是如何做好Unity项目性能优化的
4.1-支持向量机
动态代理学习
Serverless + domain name can also build a personal blog? Really, and soon
3GPP LTE/NR信道模型
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