当前位置:网站首页>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
边栏推荐
- 8 lines of code to teach you how to build an intelligent robot platform
- One hour is worth seven days! Ingenuity in the work of programmers
- 源碼解析 Handler 面試寶典
- 开发者调查:Rust/PostgreSQL 最受喜爱,PHP 薪水偏低
- 金鱼哥RHCA回忆录:DO447管理清单和凭据--为访问清单主机创建机器凭据
- Summary of the process of restoring damaged data in MySQL database
- kotlin 语言特性
- TCP triple handshake
- Beauty of script │ VBS introduction interactive practice
- Gateway processing flow of zuul source code analysis
猜你喜欢

面试官:MySQL 数据库查询慢,除了索引问题还可能是什么原因?

Getting started with the go Cobra command line tool

不用Home Assistant,智汀也开源接入HomeKit、绿米设备?

LVGL库入门教程 - 颜色和图像

系统测试主要步骤

Interviewer: the MySQL database is slow to query. What are the possible reasons besides the index problem?

国内首款开源MySQL HTAP数据库即将发布,三大看点提前告知

CVPR 2022 | 美团技术团队精选论文解读

硬件开发笔记(六): 硬件开发基本流程,制作一个USB转RS232的模块(五):创建USB封装库并关联原理图元器件

Beauty of script │ VBS introduction interactive practice
随机推荐
‘高并发&高性能&高可用服务程序’编写及运维指南
The second phase of freshman engineering education seminar is to enroll in the China 100 school peer program
Appium installation
kotlin 继承、类、重载
手机开户后多久才能通过?在线开户安全么?
敏捷之道 | 敏捷开发真的过时了么?
【5G NR】5G NR系统架构
8 - Format integers and floating point numbers
One article explains R & D efficiency! Your concerns are
Definition and use of constants in C language
3. Caller 服务调用 - dapr
go Cobra命令行工具入门
kotlin 数组、集合和 Map 的使用
快速了解常用的消息摘要算法,再也不用担心面试官的刨根问底
Redis scenario
Troubleshooting the kubernetes problem: deleting the rancher's namespace by mistake causes the node to be emptied
Opengauss kernel: simple query execution
Creation and use of unified links in Huawei applinking
Nifi from introduction to practice (nanny level tutorial) - environment
Hands on data analysis unit 3 model building and evaluation