โ† All AAD Flashcard Decks

AAD Android Architecture & App Components 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 Android Architecture & App Components flashcards as text
  1. What is the purpose of the AndroidManifest.xml file in an Android project?

    Answer: To declare app components, permissions, and metadata

    AndroidManifest.xml declares all app components, required permissions, hardware features, and other essential app metadata to the Android system.

  2. Which Android component is used to share data between different applications securely?

    Answer: ContentProvider

    A ContentProvider manages access to a central repository of data and provides a standard interface for sharing data between applications.

  3. What is the primary benefit of using ViewModel in Android Jetpack architecture?

    Answer: It survives configuration changes like screen rotation

    ViewModel is designed to store and manage UI-related data in a lifecycle-conscious way, surviving configuration changes such as screen rotations.

  4. What is the Android back stack?

    Answer: A stack of Activities maintained by the system for navigation

    The back stack is a last-in, first-out collection of Activities that the system manages so pressing the Back button navigates to the previous Activity.

  5. Which Activity method should you override to save UI state before the Activity is destroyed or paused?

    Answer: onSaveInstanceState()

    onSaveInstanceState() is called before an Activity is destroyed so you can save UI state in a Bundle, which is restored in onCreate() or onRestoreInstanceState().

  6. What is a BroadcastReceiver in Android?

    Answer: A component that listens for system-wide or app-wide broadcast announcements

    A BroadcastReceiver responds to broadcast messages from the Android system or other apps, such as battery-low or network-change events.