InterviewStack.io LogoInterviewStack.io

Android Development (Kotlin and Java) Questions

Native Android programming: the Kotlin language and Java interoperability, coroutines and concurrency, Android collections and data structures, and platform fundamentals. Covers writing correct native Android code and reasoning about the Kotlin/JVM runtime on-device. The primary Android-platform mobile surface.

HardTechnical
22 practiced

Implement a thread-safe LRU cache in Kotlin suitable for caching Bitmap objects with a maximum memory size. Your implementation should expose get/put methods, use an eviction strategy based on memory size and recent access (LRU), and be safe for concurrent access from multiple threads. Outline how you will measure and account for Bitmap byte size for eviction decisions.

EasyTechnical
21 practiced

In Kotlin, show how to start a second Activity with Intent extras and retrieve those extras safely in the receiving Activity. Include an example for a simple String extra and a Parcelable object. Demonstrate null-safety when reading extras and mention any preferred modern API for returning results to the caller.

MediumTechnical
21 practiced

Implement a debounced search in Kotlin for an EditText using kotlinx.coroutines Flow. The implementation should listen to text changes, debounce inputs by 300ms, cancel in-flight network calls when a new query arrives, and deliver results back to the UI safely on the main thread. Provide the code for wiring EditText -> Flow -> network call -> UI update.

EasyTechnical
19 practiced

Explain Android memory management at a high level: the role of ART/Dalvik GC, heap vs native memory, what causes OutOfMemoryError, and common sources of memory leaks in Android apps (bitmaps, static references, long-lived callbacks).

HardTechnical
17 practiced

Design a secure authentication flow for a mobile Android app using OAuth2 with refresh tokens. Explain why Authorization Code Flow with PKCE is recommended for mobile, how to store tokens securely (or avoid storing refresh tokens on device), how to implement token refresh and revocation, and how to handle deep links or custom tabs for the authentication flow.

Unlock Full Question Bank

Get access to all 35 Android Development (Kotlin and Java) interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.