Android developer interview questions on Kotlin, Compose and the platform

Android developer interview questions focus on Kotlin and coroutines, the lifecycle of activities, fragments and the app process, Jetpack Compose, architecture with ViewModel and Flow, background work, storage, Gradle builds, testing and performance on a wide range of devices. Expect a coding exercise, often a small app or a Kotlin problem, plus a mobile design conversation. Strong candidates explain how their choices survive rotation, process death and slow phones.

By Published 8 min read

The job, and what Android hiring managers want to see

Android developers build apps that run on thousands of device models from many manufacturers, across several OS versions at once. The work covers screens in Jetpack Compose or the older View system, data from REST or GraphQL APIs, local storage, notifications, background sync, permissions, and the Gradle build that ties it together. Then comes the part that makes Android distinct: testing on low-end hardware, handling manufacturer quirks, and watching crash and ANR rates in Play Console after each staged rollout.

  • Kotlin first: clean, idiomatic code, with enough Java to maintain older modules.
  • Lifecycle awareness: state that survives rotation and process death, and no work leaking past a screen's life.
  • Modern Jetpack: Compose, ViewModel, Room, WorkManager, Navigation and Hilt.
  • Device empathy: apps that stay quick on a budget phone with little memory and a weak connection.
  • Release discipline: staged rollouts, vitals monitoring and fast fixes when a release misbehaves.

Typical Android interview stages

  1. Screening callApps on the Play Store you contributed to, Compose versus Views experience, and the size of the codebase you worked in.
  2. Kotlin and platform screenShort questions on lifecycle, coroutines and Jetpack, sometimes a small Kotlin function to write.
  3. Coding exerciseLive or take-home: a screen that fetches and displays data, with an architecture you can defend. Some companies give a general algorithm problem in Kotlin instead.
  4. Mobile system designAn image-heavy feed, offline notes, or a messaging screen. Expect questions on caching, sync, pagination and battery.
  5. Team and behavioral roundCollaboration with iOS, backend and design, handling production incidents, and how you mentor or review.

Kotlin questions

  • How does Kotlin's null safety change the way you write code, and where can it still fail? Nullable types are explicit, so most null crashes are caught at compile time. Platform types from Java and the !! operator are where they come back.
  • When do you use a data class, a sealed class and an enum? Data classes for plain values with equals and copy, sealed classes or interfaces for a closed set of states such as Loading, Content and Error, and enums for fixed constants without extra data.
  • Explain `let`, `apply`, `also`, `run` and `with` without reading the docs. What each returns and what this or it refers to. Then say you use them sparingly, because nested scope functions hurt readability.
  • What are extension functions good for, and how can they be overused? Adding helpers to types you do not own. Overuse hides behavior in places teammates will not look.
  • How do coroutines differ from threads? Coroutines are cheap, suspend without blocking a thread, and run on dispatchers. Structured concurrency ties each one to a scope so it is cancelled with its owner.
  • Which scope do you launch a coroutine in from a screen? viewModelScope for work that should outlive a rotation, lifecycleScope with repeatOnLifecycle for collecting flows in the UI. GlobalScope is almost never right.
  • Why is Java still worth knowing for Android? Older modules, libraries and interop. Show you can read it, call it from Kotlin and migrate a file safely.

Components, lifecycle and process death

Platform fundamentals that come up in most Android interviews
QuestionWhat it testsWhat a strong answer shows
Your screen loses its data when the phone rotates. Why, and how do you fix it?Configuration changesThe activity is recreated; hold UI state in a ViewModel and restore small values with SavedStateHandle or rememberSaveable
The system kills the app in the background and the user returns. What survives?Process deathThe back stack and saved instance state are restored, ViewModels are not. Test it with the Don't keep activities option or by stopping the process from the terminal
An activity and a fragment both show UI. How are they different?Activity versus FragmentAn activity is an entry point the system starts and owns a window; a fragment is a reusable piece of UI hosted inside an activity, with its own lifecycle and a separate view lifecycle
Why do many modern apps use a single activity?App structureOne activity hosting Compose destinations or fragments simplifies navigation, shared state and transitions. Fragments still appear in older code and some libraries
Order the activity callbacks when a user opens another app and comes back.Lifecycle callbacksonPause, onStop, then onRestart, onStart and onResume, and which work belongs in each pair
What are the four app components and when would you use each?Android building blocksActivities for UI, services for work without UI, broadcast receivers for system events, and content providers for sharing data between apps
How do explicit and implicit intents differ?IntentsExplicit names the target component; implicit describes an action and lets the system pick an app, which needs package visibility rules on newer Android
How do you request a runtime permission well?PermissionsAsk in context when the feature needs it, explain why first if the user declined before, and handle denial without breaking the screen
Platform fundamentals that come up in most Android interviews. Scroll sideways on a small screen.

Jetpack Compose and the View system

  • What triggers recomposition, and how do you keep it cheap? A change to state that a composable reads. Keep state reads low in the tree, pass stable or immutable types, use remember and derivedStateOf, and give lazy list items stable keys.
  • Where should state live in a Compose screen? Hoist it out of reusable composables so they are stateless and testable, with the screen-level state in a ViewModel exposed as a StateFlow.
  • What are side effects in Compose, and which APIs handle them? Work that escapes the composition, such as starting a timer or showing a snackbar. LaunchedEffect, DisposableEffect and rememberCoroutineScope each fit a different case.
  • How would you migrate an existing View-based app to Compose? Screen by screen, using ComposeView inside fragments and AndroidView for widgets that have no Compose equivalent, with shared theming from the start.
  • Why did RecyclerView replace ListView, and is it still relevant? View holder reuse, layout managers, item animations and DiffUtil. It still runs many production screens, though LazyColumn covers most new lists.
  • How do you support phones, foldables and tablets from one codebase? Window size classes, adaptive layouts such as list-detail, and testing on resizable emulators.

Architecture, state and dependency injection

Architecture questions
QuestionWhat it testsWhat a strong answer shows
Sketch the layers of an app built the way Google's architecture guide suggests.LayeringUI layer with ViewModels, an optional domain layer of use cases, and a data layer of repositories over remote and local sources
How does a ViewModel outlive a rotation but not a finished screen?ViewModel scopeIt is stored in a ViewModelStore owned by the activity, fragment or navigation entry, and cleared when that owner is finished for good
StateFlow, SharedFlow or LiveData: which do you expose to the UI?Reactive stateStateFlow for screen state with a current value, SharedFlow or a channel for one-off events, LiveData mainly in older Java-friendly code
What does unidirectional data flow mean in practice?State managementThe UI sends events up, the ViewModel updates one immutable state object, and the UI renders whatever state it receives
Hilt, Koin or manual injection: what are the trade-offs?Dependency injectionHilt gives compile-time checks and Android scopes with more setup; Koin is simpler at runtime; manual injection works for small apps
How do you set up navigation with arguments between screens?NavigationNavigation Compose or the Navigation component with type-safe routes, passing IDs rather than whole objects, and deep links declared on destinations
Architecture questions. Scroll sideways on a small screen.

Background work, networking and storage

  • A photo upload must finish even if the user closes the app. How do you build it? WorkManager with network constraints, retry with backoff and progress reporting, or a foreground service with a visible notification if the user expects it to run right now.
  • How do Doze, App Standby and background limits affect your app? Background work is deferred or batched, so time-critical tasks need the right API, such as exact alarms only when the use case qualifies.
  • What does your usual networking stack look like? Retrofit or Ktor over OkHttp, kotlinx.serialization or Moshi, interceptors for auth headers and logging, and timeouts set on purpose.
  • How do you pick between DataStore, Room and the older SharedPreferences? DataStore for small key-value settings with coroutine support, Room for structured relational data with queries and migrations, and SharedPreferences only in legacy code.
  • How do you cache API data so the app opens instantly? Room as the single source of truth, the UI observing the database, and the network refreshing it in the background.
  • How do you keep a user's data private and secure? No secrets in the APK, encrypted storage for tokens through the Android Keystore, network security config, and minimal personal data in logs or analytics.

Performance, builds and release

Quality and tooling questions
QuestionWhat it testsWhat a strong answer shows
Play Console shows an ANR rate rising. How do you track it down?ANRsRead the ANR traces, look for disk, network or lock waits on the main thread, use StrictMode in debug builds, and move the work to a background dispatcher
How do you find a memory leak?LeaksLeakCanary in debug builds and the Memory Profiler; common causes are a static reference to a context or a listener never removed
What can you do to speed up app startup?Startup timeBaseline Profiles, lazy initialization instead of work in Application.onCreate, App Startup for libraries, and measuring with Macrobenchmark
What does R8 do to a release build, and what can go wrong?Code shrinkingShrinks, optimizes and obfuscates code; reflection-based libraries can break without keep rules, so test the release variant
Your minSdk is several versions behind the latest. How do you use new APIs safely?OS version supportAndroidX and Jetpack compat libraries, SDK_INT checks around newer calls, lint for API levels, and testing on emulators for the oldest and newest versions you support
What does a healthy Git workflow look like on an Android team?Version controlSmall branches and pull requests, CI that builds and tests every change, and release branches or tags that match what is live in Play Console
How do you organize a large Gradle project?Build systemFeature and core modules, a version catalog, convention plugins, build variants and product flavors, and KSP instead of kapt where possible
Which tests do you write, and with which tools?TestingJUnit with MockK and Turbine for ViewModels and flows, Robolectric where needed, Compose UI tests or Espresso for key journeys, and screenshot tests for design regressions
How do you release safely to millions of devices?RolloutAndroid App Bundles, internal and closed testing tracks, a staged rollout, and a halt if crash or ANR rates climb
How do you handle translations and right-to-left layouts?LocalizationAll strings in resources, plurals and formatting through the platform, start and end instead of left and right, and pseudo-locales to catch issues
Quality and tooling questions. Scroll sideways on a small screen.

Fictional example

Answering "Tell me about a production bug you are glad you caught"
After a staged rollout of our checkout redesign, Play Console showed a crash cluster that only appeared on resume. The stack trace pointed to a lateinit property in a fragment. I reproduced it by turning on Don't keep activities: when the system killed the process and the user came back, the fragment was restored but the object it expected had never been passed again. We had only ever tested rotation, never process death. I halted the rollout, moved the cart ID into SavedStateHandle so the ViewModel could reload the cart itself, and added an instrumented test that recreates the activity. The fix went out two days later and the crash cluster disappeared. Since then, process death is on our release checklist.

Behavioral and collaboration questions

  • How do you work with the iOS team on the same feature? Agree on the API contract and analytics events together, share edge cases, and accept that each app should feel native on its own platform.
  • Tell me about a disagreement over architecture. Explain the options, the evidence you brought, such as build times or a prototype, and how the team decided.
  • What do you do when a feature cannot be finished for the release? Hide it behind a flag, tell the product manager early, and ship what is stable.
  • Describe a library you chose not to add. Size, maintenance, permissions it requested, or licensing. Interviewers like candidates who weigh dependencies.
  • How do you stay current with Android? Android Developers blog and release notes, Google I/O sessions, and trying new Jetpack libraries in a side project before production.

Many teams hire for both platforms, and the iOS developer interview guide shows how the same topics are asked on the Apple side. The backend developer guide helps if the loop includes API design.

Good questions for your interviewers

  • What are your minSdk and targetSdk, and how quickly do you adopt new Android versions?
  • How much of the UI is in Compose, and is there a migration plan for the rest?
  • What do your crash-free and ANR rates look like, and who owns them?
  • Which low-end devices do you test on before a release?

Two weeks of focused preparation

  1. Kotlin and coroutinesWrite examples of sealed state classes, flows with operators, and coroutine cancellation. Explain dispatchers aloud.
  2. One complete sample appCompose UI, a ViewModel with StateFlow, Retrofit, Room as a cache and Hilt. Make it survive rotation and process death.
  3. Profile and break itRun it on a slow emulator image, add a Baseline Profile, and introduce a leak on purpose so you can find it with LeakCanary.
  4. Design rehearsalTalk through an offline-first feed, a photo upload queue and a chat screen, covering sync, caching and battery.
  5. StoriesPrepare a shipped feature, a production crash, a tough review comment and a cross-team project, each with a result.

Mock rounds are more useful when you can read them back. Natively, an AI interview assistant for Mac and Windows, transcribes a practice session on your computer and saves the transcript and notes, which makes it easy to spot where your explanation of state or threading drifted. While you rehearse, it can draft an answer to the question just asked, pick up a Kotlin problem from a screenshot, and, with Pro or the free trial, draw on the résumé and job description you upload so the suggestions fit your own apps.

Questions people ask

What are the most common Android developer interview questions?

How the activity lifecycle and configuration changes work, what survives process death, coroutines and Flow, Compose recomposition and state, how a ViewModel is scoped, dependency injection with Hilt, WorkManager for background tasks, and Room versus DataStore.

Should I prepare in Kotlin or Java for an Android interview?

Kotlin. It is the language most Android teams write today and most interview tasks expect it. Basic Java reading skills still help with older modules and libraries.

What architecture do Android interviewers expect?

Usually MVVM with unidirectional data flow: a ViewModel exposing state as StateFlow, repositories in a data layer, and dependency injection. What matters most is explaining why each layer exists.

How many rounds does an Android developer interview have?

Commonly four or five: a screening call, a technical screen, a coding exercise or take-home, a mobile system design round, and a behavioral or team interview.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP