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
What is LiveData in Android Jetpack?
Answer: An observable data holder that respects the lifecycle of app components
LiveData is a lifecycle-aware observable data holder that automatically updates UI observers only when they are in an active lifecycle state.
What is the primary purpose of the Application class in Android?
Answer: To maintain global application state for the app's lifetime
The Application class is instantiated before any Activity and is used to maintain global application state and initialize app-wide singletons.
What distinguishes a bound Service from a started Service in Android?
Answer: A bound Service allows components to bind to it and interact via a client-server interface
A bound Service offers a client-server interface that allows components to bind, send requests, and receive results, and it runs only as long as a component is bound to it.
What is the Jetpack Navigation Component primarily used for?
Answer: Handling in-app navigation between destinations
The Jetpack Navigation Component simplifies implementing navigation between fragments and activities using a visual navigation graph.
In the Activity lifecycle, what state is the Activity in immediately after onResume() is called?
Answer: Running/Resumed
After onResume() is called, the Activity is in the Running (Resumed) state — it is in the foreground, visible, and actively interacting with the user.
What is the role of a ContentProvider's URI in Android?
Answer: It uniquely identifies a dataset exposed by the ContentProvider for access
A ContentProvider URI uniquely identifies the provider and the specific data table or record to access, following the format content://authority/path/id.