AceMobileInterview

Android track

General topic questions

Configuration Changes

MediumOccasional

Free section · general topics & algorithms

What happens on rotation and how do you preserve UI state?

Reveal model answer
Activity may be destroyed/recreated. Use ViewModel + SavedStateHandle, rememberSaveable in Compose, or onSaveInstanceState. Avoid heavy objects in saved state bundles.
FCM PushAlarmManager vs WorkManager