Android lifecycle and app components interview questions

Activities, Fragments, configuration changes, process death, intents, services, receivers and permissions.

5 quick facts

– interview-ready · 18 questions in this topic

– of 18 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. The Activity lifecycleOrder the steps
  2. Lifecycle order: A opens BOrder the steps
  3. Configuration changesPick the fix
  4. Process deathPredict
  5. SavedStateHandleFill the blank
  6. Fragment and view lifecyclesSpot the bug
  7. How a ViewModel survivesPick the fix
  8. Launch modes and tasksPredict
  1. Explicit and implicit intentsPick the fix
  2. PendingIntent and mutabilityPick the fix
  3. The Activity Result APIPick the fix
  4. Services and foreground service typesPick the fix
  5. Broadcast receiversPick the fix
  6. Content providersPick the fix
  7. Runtime permissionsOrder the steps
  8. Application class and startup workPick the fix
  9. TransactionTooLargeExceptionPick the fix
  10. Parcelable vs SerializablePick the fix

Practise this topic

Flashcards · 23

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 18 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 3 sets

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.

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