Describe the Android Activity lifecycle when navigating away and back

Tests understanding of resource management via lifecycle callbacks. A good answer traces onPause -> onStop -> onRestart -> onStart -> onResume, explaining what work happens in each.
This question tests your core understanding of Android resource management and state handling through the Activity lifecycle. A strong answer outlines the key states (Created, Started, Resumed, etc.) and then traces the specific path for navigating away (`onPause`, `onStop`) and returning (`onRestart`, `onStart`, `onResume`). You should explain *why* this order exists and what kind of work (e.g., releasing cameras, saving state) belongs in each callback. A major red flag is just reciting method names without context or purpose.
Read the original → developer.android.com
- #android
- #activity
- #lifecycle
- #kotlin
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.