当前位置:网站首页>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
边栏推荐
- There may be fields that cannot be serialized in the abnormal object of cdc and sqlserver. Is there anyone who can understand it? Help me to answer
- Activity的四种状态
- Go语言实现Etcd服务发现(Etcd & Service Discovery & Go)
- 4.1-支持向量机
- Internet phone software or consolidation of attack must be "free" calls security clearance
- 查找最新人员工资和上上次人员工资的变动情况
- Depth (relay supervision)
- Edge provides label grouping functionality
- Tf中的平方,多次方,开方计算
- 【LeetCode每日一题】——682.棒球比赛
猜你喜欢

Serverless + domain name can also build a personal blog? Really, and soon

从何跟踪伦敦金最新行情走势?

1061 判断题 (15 分)
![[Recommender System]: Overview of Collaborative Filtering and Content-Based Filtering](/img/bc/fd2b8282269f460f4be2da78b84c22.png)
[Recommender System]: Overview of Collaborative Filtering and Content-Based Filtering

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

1051 Multiplication of Complex Numbers (15 points)

3.2-分类-Logistic回归

【Pytorch】nn.PixelShuffle

项目2-年收入判断

年薪40W测试工程师成长之路,你在哪个阶段?
随机推荐
Evolution and New Choice of Streaming Structured Data Computing Language
LeetCode brushing series -- 46. Full arrangement
从何跟踪伦敦金最新行情走势?
语音信号处理:预处理【预加重、分帧、加窗】
年薪40W测试工程师成长之路,你在哪个阶段?
无服务器+域名也能搭建个人博客?真的,而且很快
oracle19c does not support real-time synchronization parameters, do you guys have any good solutions?
Strongly recommend an easy-to-use API interface
1071 小赌怡情 (15 分)
matrix multiplication in tf
easyrecovery15数据恢复软件收费吗?功能强大吗?
2022-08-09 Group 4 Self-cultivation class study notes (every day)
Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引
那些事情是用Unity开发项目应该一开始规划好的?如何避免后期酿成巨坑?
How Unity handles C# under the hood
1081 检查密码 (15 分)
Pytorch模型转ONNX模型
计算YUV文件的PSNR与SSIM
Discourse's Close Topic and Reopen Topic
1003 I want to pass (20 points)