Explain app restoration after Android process death

Tests your grasp of process death vs. configuration changes. A good answer explains that the entire app process is recreated, starting with onCreate, and state must be restored from the SavedStateHandle.
This tests your deep knowledge of process death versus configuration changes. A strong answer clarifies that after process death, the OS recreates the entire application process, not just the Activity. This triggers onCreate(savedInstanceState), not onStart. State must be restored from the Bundle, ideally via a ViewModel's SavedStateHandle. This is unlike a config change, which recreates the Activity in the *existing* process. A red flag is describing the normal background-to-foreground transition (onRestart, onStart).
Read the original → developer.android.com
- #android
- #kotlin
- #lifecycle
- #viewmodel
- #system design
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.