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
Which Android component serves as the primary entry point for user interaction and displays a single screen with a user interface?
Answer: Activity
An Activity represents a single screen with a UI and is the primary entry point for user interaction in an Android app.
Which Android component is designed to perform long-running background operations without a user interface?
Answer: Service
A Service runs in the background to perform long-running operations without providing a user interface.
In the Activity lifecycle, which method is called when the Activity is first created?
Answer: onCreate()
onCreate() is the first lifecycle callback called when an Activity is created, where you initialize the UI and data.
What is the primary purpose of an Intent in Android?
Answer: To facilitate communication between components
An Intent is a messaging object used to request an action from another component, facilitating communication between Activities, Services, and BroadcastReceivers.
Which Activity lifecycle method is called when the Activity becomes visible to the user but may not yet be in the foreground?
Answer: onStart()
onStart() is called when the Activity becomes visible to the user, before it enters the foreground interactive state.
What is a Fragment in Android?
Answer: A reusable UI portion that lives inside an Activity
A Fragment is a reusable portion of your app's UI that has its own lifecycle and can be embedded in an Activity.