โ† All AAD Flashcard Decks

AAD Jetpack Libraries & Modern Android Development Flashcards

6 cards from real AAD practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 AAD Jetpack Libraries & Modern Android Development flashcards as text
  1. What is the role of a Room Entity?

    Answer: It defines a table in the SQLite database

    A Room @Entity is a data class annotated to represent a table in the SQLite database, with each field mapping to a column.

  2. Which Jetpack Compose function is used to remember a mutable state variable across recompositions?

    Answer: remember { mutableStateOf() }

    remember { mutableStateOf() } creates a state holder that Compose remembers across recompositions, triggering UI updates whenever the value changes.

  3. What does the @Composable annotation indicate in Jetpack Compose?

    Answer: The function describes UI that Compose can render and recompose

    @Composable marks a function as a Compose UI function that describes part of the UI tree and can be recomposed by the Compose runtime when state changes.

  4. Which WorkManager constraint ensures a task only runs when the device is connected to an unmetered network?

    Answer: NetworkType.UNMETERED

    NetworkType.UNMETERED in a Constraints builder ensures WorkManager only executes the task when the device is on a Wi-Fi or similar unmetered connection.

  5. What is Hilt used for in Android Jetpack?

    Answer: Dependency injection

    Hilt is a Jetpack library built on Dagger that provides a standard way to perform dependency injection in Android apps with compile-time validation.

  6. In Jetpack Navigation, which method safely passes data between destinations with type safety?

    Answer: Safe Args generated directions classes

    The Safe Args Gradle plugin generates type-safe Directions and Args classes so data is passed between Navigation destinations without manual Bundle parsing.