AceMobileInterview

Interview guides / android

Activity & process lifecycle: Android Interview Question

Activity & process lifecycle interview question with a clear example answer for Android engineers. Practice with AceMobileInterview.

This is a common Android interview topic: Activity & process lifecycle.

Below is a concise answer you can adapt in a real interview, then go deeper in the full AceMobileInterview track.

  1. 1.Explain the Activity lifecycle and what happens when the process is killed in the background. How do you save state?

    onCreate → onStart → onResume → onPause → onStop → onDestroy. Process death can wipe in-memory state after onStop. Persist UI state with onSaveInstanceState / SavedStateHandle, and durable data in DataStore/Room. Distinguish configuration change (recreate Activity) vs process death.

Keep going with AceMobileInterview

Reading helps. Timed practice locks it in. Jump into the interactive track for algorithms with LeetCode links, studio projects, debugging zips, and mobile system design.

iOS trackAndroid trackMore guides