Android networking interview questions
Retrofit and OkHttp, serialization, interceptors, token refresh, retries, caching and image loading.
– interview-ready · 8 questions in this topic
– of 8 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
Practise this topic
Flashcards · 12
Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.
Quick quiz · 8 questions
One exercise per question, checked as you go. Needs JavaScript.
Mock interview · 1 set
Timed, out loud, then tick what you covered. Needs JavaScript.
Fix this PR · 1 review
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
HttpException
Retrofit throws HttpException for non-2xx responses when a suspend function returns the body type.
OkHttp call timeout
callTimeout limits the whole call, including retries and redirects; connect/read/write timeouts limit each phase.
Retry-After
A 429 or 503 response can include Retry-After with the seconds to wait.
Coil
Coil is an image loader built on Kotlin coroutines, with AsyncImage for Compose.
Printable cheat sheet · Review your weak spots in this topic
Share your progress
Sources: Question outline adapted from Android-Interview-Questions by Mohsen Mirhoseini, licensed under Apache 2.0. We reorganised the questions, rewrote every answer and added new ones. Credits and license