Top Android Developer Interview Guide
When evaluating applicants for Android Developer desks, panels dig rapidly into edge cases around Kotlin, Jetpack Compose, MVVM / Clean Architecture. Hiring teams across Mobile Engineering consistently screen for proven hands-on problem solving before extending final offers.
- How do ViewModel and StateFlow survive configuration changes cleanly? — ViewModel outlives Activity recreation during rotation; expose immutable StateFlow and collect using repeatOnLifecycle(STARTED).
- Why does holding an Activity Context inside a singleton cause severe memory leaks? — Long-lived singletons hold references preventing the destroyed Activity and all its views/bitmaps from being garbage collected; pass applicationContext instead.
- Compare WorkManager vs CoroutineScope for guaranteed background sync. — In-memory Coroutines die when the OS kills the app; WorkManager persists tasks in SQLite and runs reliably under Doze constraints.
- How do you prevent ANRs (Application Not Responding) in production? — Enable StrictMode in debug, offload DB/JSON parsing to Dispatchers.IO/Default, and audit Play Vitals slow-frame traces.