Android interview prep book: what it must train, and ten questions to test it
By Mike Salari. Staff mobile engineer · 500+ technical interviews from the hiring side.
If you are choosing an Android interview prep book, this page shows what the book has to train for the preparation to show up in the room, and how to use it. Then it gives ten 2026 questions with what is scored, so you can test any book, including mine, against them. Each one touches a platform rule that changed between 2024 and 2026.
Who this is for
Mid-level, senior and staff Android engineers with a loop in the next few weeks. A prep book helps most when you already ship Kotlin and need to explain your decisions out loud under follow-up pressure. If you are new to Android, start with the official courses first.
What a good book has to train
Capable Android engineers rarely fail because they never heard of an API. They fail when a correct mechanism is attached to the wrong owner, a durable write is described as a successful submit, or cancellation is confused with failure. The gap is audible within two follow-ups, and almost nobody prepares for the follow-ups. So check a book for these, in this order.
- Follow-ups that change one condition. Interviewers push in four ways: they make your answer too absolute, they change the lifetime (rotation, process death, logout), they make the happy path fail (timeout after the server committed), and they ask how you know. A book that stops at the first answer leaves you exposed on all four.
- Dated platform claims. Android tightens every year. A good book says "since Android 15" or "targeting API 36", so you can check it.
- A reasoning model you can fall back on. Who owns this state or work? How long should it live? What survives process death? Which side of the trust boundary decides? What evidence proves the claim? If you lose an API name, these questions still carry the answer.
- Code that compiles, short and current, with a clear line between the official guidance and the author's preference.
When your first answer is incomplete, do not defend it. Say: "Let me make that more precise," then state the missing constraint. Refusing to correct an overclaim costs more than the overclaim.
How to use a prep book
- Answer out loud before you read the model answer, and record it.
- Score your recording on what another person could check: the owner you named, the failure you handled, the evidence you gave.
- Fix the first gap that would change the answer, not the easiest one.
- Retry with one condition changed: offline, process killed, old app version, token expired.
- Check moving APIs against developer.android.com on the day you study.
The questions
1. "Where do you keep a refresh token in 2026?"
What is scored: whether your security answer is current and puts trust in the right place.
A strong answer covers:
- Context: the Jetpack Security crypto library, including EncryptedSharedPreferences, was deprecated in April 2025 in favour of platform APIs and direct use of the Android Keystore.
- Decision: an AES-GCM key generated inside the Keystore, data encrypted with it (yourself or with a library such as Tink), ciphertext stored in DataStore or a file.
- Split lifetimes: the short-lived access token stays in memory; the refresh token gets encryption at rest.
- Failure mode: forgetting backups. Exclude token stores from cloud backup and device transfer.
- Evidence: what a stolen file gives an attacker: ciphertext with no key.
val spec = KeyGenParameterSpec.Builder(
"session_key",
KeyProperties.PURPOSE_ENCRYPT or KeyProperties.PURPOSE_DECRYPT
)
.setBlockModes(KeyProperties.BLOCK_MODE_GCM)
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
.setKeySize(256)
.build()
val generator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore")
generator.init(spec)
val key = generator.generateKey() // usable on device, not exportableFollow-ups:
- The device is rooted. What does the Keystore still protect, and what does it not?
- Rotation: you need a new key next quarter. What happens to data written under the old one?
Weak answer: "EncryptedSharedPreferences." It dates your preparation to before April 2025.
2. "Nine requests get a 401 at the same moment. Walk me through the refresh."
What is scored: concurrency in the network layer, and who decides logout.
A strong answer covers:
- An interceptor only attaches the current token. An OkHttp
Authenticatoranswers 401s. - One refresh flight: synchronize, and inside the lock check whether another thread already replaced the token that failed.
- Cap retries: if the response already has a prior response, return null and give up. OkHttp documents returning null to decline the challenge.
- The refresh call uses a separate client without this authenticator, or a failing refresh calls itself.
- If the refresh token is dead too, that is a session event. The network layer reports it; the session owner decides logout.
class TokenAuthenticator(
private val store: TokenStore, // your token storage
private val refresher: TokenRefresher, // separate OkHttpClient, no authenticator
) : Authenticator {
override fun authenticate(route: Route?, response: Response): Request? {
if (response.priorResponse != null) return null // one retry, then give up
val failed = response.request.header("Authorization")?.removePrefix("Bearer ")
val fresh = synchronized(this) {
val current = store.accessToken()
if (current != null && current != failed) current // someone already refreshed
else refresher.refreshBlocking()?.also(store::save) ?: return null
}
return response.request.newBuilder()
.header("Authorization", "Bearer $fresh")
.build()
}
}Follow-ups:
- The server rotates refresh tokens on every use. What breaks without the lock?
- Half the requests are on HTTP/2 to one host. Does anything change?
Weak answer: "The interceptor refreshes on every 401." Ten calls refresh ten times, and with rotating tokens nine fail and the user is logged out at random.
3. "Do you still mark your Compose classes @Stable everywhere?"
What is scored: whether your Compose advice is from this decade.
A strong answer covers:
- Strong skipping is enabled by default in Kotlin 2.0.20. Unstable parameters are compared by instance equality, stable ones by
equals, and lambdas in composables are remembered automatically. - Decision: reach for
@Stable,@Immutableor the stability configuration file after a tool shows a real skip failure. - What still recomposes too much: wide state reads, lazy items without stable keys, and reads in the wrong phase.
- Evidence: Layout Inspector recomposition counts or a trace, before and after.
Follow-ups:
- A new list instance with equal contents arrives every second. Does the row skip?
- When would you opt a lambda out of memoization?
Weak answer: "Annotate everything stable to be safe." It is advice from before strong skipping, applied as a ritual.
4. "A long upload in a dataSync foreground service dies after hours on Android 15. Why?"
What is scored: current background-work rules.
A strong answer covers:
- Android 15 lets an app's
dataSyncservices run 6 hours in 24, shared across all of them. ThenonTimeoutfires and the service has a few seconds to callstopSelf(), or the system throws. - Reclassify the work: a long transfer the user started becomes a user-initiated data transfer job (Android 14 and up,
setUserInitiated(true)); short interruptible syncs stay on WorkManager. - Whatever stays a
dataSyncservice implementsonTimeout, checkpoints and resumes later. - Evidence: test on API 34 and 35 images, since these rules are version-gated.
Follow-ups:
- The user brings the app to the foreground at hour five. What happens to the timer?
- Your minimum SDK is 26. What runs on devices without UIDT?
Weak answer: "Declare the service type and permission." It fixes the crash at start and still dies at hour six.
5. "You target API 36. Your portrait-locked app now runs on a tablet. What changed?"
What is scored: tracking behaviour changes that arrive with the target.
A strong answer covers:
- For apps targeting Android 16, orientation, resizability and aspect ratio restrictions no longer apply on displays with smallest width of 600dp or more.
screenOrientationandsetRequestedOrientation()are ignored there. - Recreation bugs that the portrait lock hid now show up. State must survive configuration change and process death.
- A temporary opt-out exists, per activity or for the whole app, and the docs say it will not apply when targeting API 37.
- The same target removes the edge-to-edge opt-out on Android 16 devices and turns on predictive back, so
onBackPressedis not called.
Follow-ups:
- Which three screens would you test first on a foldable, and why those?
- You must ship the target bump next week across 40 modules. What is your order?
Weak answer: "We lock portrait, so tablets are fine." That lock is ignored on large screens for apps on this target.
6. "Your exported activity reads an Intent from extras and starts it. Review that."
What is scored: seeing the client as hostile ground.
A strong answer covers:
- That is intent redirection: an attacker controls an intent your app launches with its own identity, and can reach private components.
- Decision: avoid forwarding nested intents. If you must, verify the resolved target against an allowlist or use
IntentSanitizer. - Use a
PendingIntentwhen another component needs to act for you; it keeps the target immutable. - Failure mode: trusting
getCallingActivity(), which a malicious caller can make null.
Follow-ups:
- Android 16 adds opt-in stricter intent matching with
intentMatchingFlags. Does turning it on end your review? - How would StrictMode help you find the others?
Weak answer: "It is exported, but only our app calls it." Exported means anyone can.
7. "A TalkBack user cannot tell which filter is selected. Fix it."
What is scored: accessibility as part of the interface.
A strong answer covers:
- Context: state shown by colour alone does not exist for a screen reader.
- Decision: expose the state through semantics with
stateDescription, and make the row toggleable so the role and action are announced. - Merge child semantics where a card should be one stop, not five.
- Evidence: test with TalkBack on, and assert semantics in a UI test.
@Composable
fun FilterRow(label: String, selected: Boolean, onToggle: () -> Unit) {
val state = if (selected) "Selected" else "Not selected" // use string resources
Row(
Modifier
.semantics { stateDescription = state }
.toggleable(value = selected, onValueChange = { onToggle() })
) {
Text(label)
}
}Follow-ups:
- The user has font size at the maximum. What breaks in this row?
- How do you stop this regressing next quarter?
Weak answer: "Add a content description to the icon." It names the icon and still hides the state.
8. "The app asks for READ_MEDIA_IMAGES to set a profile photo. Play flags it. What now?"
What is scored: asking whether a permission can be deleted before asking how to request it.
A strong answer covers:
- Play's photo and video permissions policy limits these permissions to apps whose core function needs broad media access. Full compliance became mandatory on 28 May 2025.
- A one-off selection uses the photo picker (
PickVisualMedia), which gives access to only the items the user selects. - Library-wide access (a gallery or backup app) keeps the permission and files the declaration with evidence.
- Evidence: the permission is gone from the merged manifest, including from libraries.
Follow-ups:
- A third-party SDK adds the permission back in the merged manifest. How do you find and remove it?
- The feature needs repeat access to the same chosen photos. What changes?
Weak answer: "We write a better declaration." For an avatar, Play is asking you to remove the permission.
9. "Where do you check a Play Integrity verdict, and what do you do with it?"
What is scored: trust decisions on the server, with proportion.
A strong answer covers:
- The backend decides. Google's guidance puts enforcement on your server, with tiered responses such as allow, allow with limits, challenge, deny.
- Fewer devices meet the higher trust tiers, so protect high-value actions instead of blocking the whole app.
- Do not cache verdicts; reuse enables proxying from a good device.
- Evidence: run without enforcement first and measure what your install base returns.
Follow-ups:
- The verdict says the device is not licensed. What does the user see?
- An attacker hooks the success callback on the client. What did that buy them?
Weak answer: "The app checks the verdict and blocks rooted users." A client gate is one patch away from gone.
10. "Play says your update needs 16 KB page size support. You have no NDK code. Are you done?"
What is scored: treating a platform rule as a supply-chain check.
A strong answer covers:
- Apps targeting Android 15 and higher must support 16 KB pages on 64-bit devices on Google Play. From 1 February 2027, updates without support cannot be released.
- Native code often arrives through third-party SDKs. Look for
.sofiles in the APK'slibfolder with the APK Analyzer. - Check alignment with
check_elf_alignment.sh,zipalign -c -P 16, orbundletool, then verify on a 16 KB emulator image. - Pure Kotlin and Java apps already support it, and should still be tested.
Follow-ups:
- The unaligned library is from a vendor who has not shipped a fix. What are your options?
- How do you stop a new dependency adding an unaligned library next year?
Weak answer: "We do not use C++." Your dependencies might.
What changed in 2024 to 2026
- Strong skipping is on by default in Kotlin 2.0.20. Android Developers
- The security-crypto library deprecated all APIs in favour of platform APIs and the Android Keystore (1.1.0-alpha07, 9 April 2025). AndroidX releases
- Play's photo and video permissions policy reached mandatory full compliance on 28 May 2025. Play Console Help
- Android 15:
dataSyncforeground services share a 6-hour limit per 24 hours. Android Developers - Android 16: large-screen orientation and resizability restrictions ignored, no edge-to-edge opt-out, predictive back on by default for apps targeting API 36. Android Developers
- 16 KB page sizes: required for apps targeting Android 15+, with updates blocked from 1 February 2027 if unsupported. Android Developers
How the rounds run
Formats vary by company and level. Some loops are mostly general coding; others add an Android round, a system design round and a project deep dive. A book cannot tell you which you will get. StaffEng's guide says to find out the interview formats and what they evaluate, and that it is always reasonable to ask. Ask the recruiter what each round scores and whether one is Android-specific, then weight your study to match. For language depth, see Kotlin interview questions; for performance, see threading and performance interview questions.
Sources
- Strong skipping mode, Android Developers, accessed 21 October 2026
- Security library releases, AndroidX, accessed 21 October 2026
- OkHttp Authenticator, Square, accessed 21 October 2026
- Behavior changes: Android 15, Android Developers, accessed 21 October 2026
- User-initiated data transfer, Android Developers, accessed 21 October 2026
- Behavior changes: Android 16, Android Developers, accessed 21 October 2026
- Intent redirection, Android Developers, accessed 21 October 2026
- Semantics in Compose, Android Developers, accessed 21 October 2026
- Photo picker, Android Developers, accessed 21 October 2026
- Photo and Video Permissions policy, Play Console Help, accessed 21 October 2026
- Play Integrity API overview, Android Developers, accessed 21 October 2026
- Support 16 KB page sizes, Android Developers, accessed 21 October 2026
- Interviewing for Staff-plus roles, StaffEng, accessed 21 October 2026