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.

MediumTechnical
30 practiced

You're building a form-based screen. Describe how you would preserve the form's data across configuration changes (rotation) and process death. Include when to use onSaveInstanceState, SavedStateHandle with ViewModel, and persistent storage. Provide brief code sketches or pseudocode for the preferred solution.

MediumTechnical
22 practiced

Explain ContentProvider usage and IPC in Android. When would you implement a ContentProvider instead of a direct network API or local database access? Describe how to implement queries, inserts and secure your provider with permissions or UriPermission grants.

MediumTechnical
34 practiced

Explain Fragment lifecycle differences compared to Activities. Discuss the view lifecycle (onCreateView/onViewCreated/onDestroyView) vs the fragment object lifecycle, safe fragment transactions, commit vs commitAllowingStateLoss, and best practices for performing fragment transactions safely during lifecycle changes.

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.

HardTechnical
17 practiced

A foreground Service in your app is causing an ANR related to synchronous disk and network IO on the main thread. Describe how you would diagnose the ANR, what logs and traces you would collect, and propose code-level and architectural fixes (specific Android APIs or patterns) to prevent ANRs in such background/foreground tasks.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.