---
# System prepended metadata

title: Android 生命週期
tags: [Android, lifecycle]

---

# Android 生命週期
###### tags: `Android` `lifecycle`

花了點時間重讀文檔，再整理一次生命週期的重點

![](https://i.imgur.com/qAa2Xmv.png)


## Activity
[hackMd](https://hackmd.io/yqMuTxpPTqCf8mhawOhmsQ?view)
[ithome](https://ithelp.ithome.com.tw/articles/10282954)

## Fragment
[hackMd](https://hackmd.io/hw02kuddQOCjvQ3s-zsBBA?view)
[ithome](https://ithelp.ithome.com.tw/articles/10286028)

## 和生命週期關聯的類別
[hackMd](https://hackmd.io/1qg0GMJiQkeP7MsI2z-WQg?view)
[ithome](https://ithelp.ithome.com.tw/articles/10286029)

## 在 ui 中保存狀態
[hackMd](https://hackmd.io/XrYSRilNTwKMS8MbxAVIbw?view)
[ithome](https://ithelp.ithome.com.tw/articles/10286030)

## ViewModel
[hackMd](https://hackmd.io/PjijVyPCSXmTq2mC3I1Wcw?view)
[ithome](https://ithelp.ithome.com.tw/articles/10286039)

## View 執行順序
[hackMd](https://hackmd.io/yGOxnMO_QlqKk4O-6S4EbA?view)

