App Functionality & Behavior 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 App Functionality & Behavior flashcards as text
Which method is used to start a new Activity in an Android application?
Answer: startActivity()
startActivity() is used to launch a new Activity from another Activity within an Android application.
Which lifecycle method is called when an Activity becomes visible to the user?
Answer: onStart()
The onStart() method is triggered when an Activity becomes visible but is not yet in the foreground.
Which component is responsible for handling background tasks in an Android app?
Answer: Service
A Service is used to perform long-running operations in the background without direct user interaction.
Which Android component allows an app to send and receive messages globally within the system?
Answer: BroadcastReceiver
A BroadcastReceiver listens for system-wide broadcast messages and can respond to various system events.
What is the purpose of an Intent in Android?
Answer: To request an action from another component
Intents are used to request an action from another component, such as starting an Activity or Service.
Which Android component is responsible for managing and storing structured data?
Answer: ContentProvider
A ContentProvider manages access to structured data and is used for sharing data between applications.