Trace an Activity's lifecycle when a user navigates away and returns

This tests your understanding of resource management and state preservation, not just memorization. A great answer traces onPause -> onStop when leaving, and onRestart -> onStart -> onResume when returning, explaining what happens in each.
This tests your grasp of resource management and state preservation, not just method memorization. A great answer traces the flow: onPause -> onStop when navigating away, then onRestart -> onStart -> onResume upon return. Explain *why* each is called—onStop is for releasing heavy resources like a camera, while onPause is for brief interruptions. A major red flag is forgetting onRestart or failing to differentiate the purpose of onPause versus onStop, which shows a lack of practical experience.
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.