当前位置:网站首页>Activity生命周期
Activity生命周期
2022-06-24 12:53:00 【day_moon】
Activity生命周期

1.首次进来的生命周期
onCreate->onStart->onResume
2.按home的生命周期 ,也就是退回后台
onPause->onStop
3.按返回的生命周期,销毁当前窗体
onPause->onStop->onDestroy
3.跳转到新窗体的生命周期,先暂停后启动再停止
onPause->onCreate1->onStart1->onResume1 ->onStop
4.竖屏转横屏 销毁先保存,回到前台前先设状态
onPause->onStop->onSaveInstanceState->onDestroy
onCreate->onStart->onRestoreInstanceState->onResume
边栏推荐
- ERR AUTH< password> called without anypassword configured for the default user. Ar
- Go deep into high-performance JSON parsing libraries in go
- kotlin 初始化块
- 问个sql view的问题
- Redis scenario
- Sphere, openai and ai21 jointly publish the best practice guidelines for deployment models
- 《中国数据库安全能力市场洞察,2022》报告研究正式启动
- Megacli online management raid installation and use steps
- Main steps of system test
- 【AI玩家养成记】用AI识别邻居家旺财是什么品种
猜你喜欢

CVPR 2022 | 美團技術團隊精選論文解讀

如何避免严重网络安全事故的发生?

【5G NR】5G NR系统架构

《中国数据库安全能力市场洞察,2022》报告研究正式启动

使用 Abp.Zero 搭建第三方登录模块(一):原理篇

CVPR 2022 | interprétation de certains documents de l'équipe technique de meituan

Sinomeni vine was selected as the "typical solution for digital technology integration and innovative application in 2021" of the network security center of the Ministry of industry and information te

Who is the fish and who is the bait? Summary of honeypot recognition methods from the perspective of red team

首席信息安全官仍然会犯的漏洞管理错误

快速了解常用的消息摘要算法,再也不用担心面试官的刨根问底
随机推荐
国内首款开源MySQL HTAP数据库即将发布,三大看点提前告知
[log service CLS] Tencent cloud log service CLS accesses CDN
[one picture series] one picture to understand Tencent Qianfan apaas
Yolov6: the fast and accurate target detection framework is open source
实现领域驱动设计 - 使用ABP框架 - 创建实体
黄金年代入场券之《Web3.0安全手册》
The introduction of MySQL memory parameters is divided into two categories: thread exclusive and global sharing
CVPR 2022 | interprétation de certains documents de l'équipe technique de meituan
Troubleshooting the kubernetes problem: deleting the rancher's namespace by mistake causes the node to be emptied
CPU status information us, sy and other meanings
‘高并发&高性能&高可用服务程序’编写及运维指南
华为AppLinking中统一链接的创建和使用
Manuel d'entrevue du gestionnaire de l'analyse des sources
Implement Domain Driven Design - use ABP framework - create entities
[one picture series] one picture to understand Tencent Qianfan ipaas
Cloud native essay solicitation progress case practice
【5G NR】5G NR系统架构
Liux command
Introduction to reptile to give up 01: Hello, reptile!
Kotlin initialization block