Recall & Review
beginner
What is an Intent in Android development?
An Intent is a message object used to request an action from another app component, like starting a new screen (activity).
Click to reveal answer
beginner
How do you start a new activity using an Intent in Kotlin?
You create an Intent with the current context and the target activity class, then call startActivity(intent).
Click to reveal answer
intermediate
What is the purpose of the Context parameter when creating an Intent?
Context tells the Intent where it is starting from, usually the current activity or application environment.
Click to reveal answer
intermediate
How can you pass data to the new activity using an Intent?
Use intent.putExtra(key, value) to add data, which the new activity can retrieve from its intent.
Click to reveal answer
intermediate
What method do you use to retrieve data sent via Intent in the new activity?
Use intent.getStringExtra(key) or similar methods inside the new activity to get the passed data.
Click to reveal answer
Which class is used to start a new activity in Android?
✗ Incorrect
Intent is the class used to request starting a new activity.
What method starts the new activity after creating an Intent?
✗ Incorrect
startActivity() is called with the Intent to open the new activity.
How do you pass a string value "username" to the next activity?
✗ Incorrect
putExtra() adds extra data to the Intent.
Which parameter is required first when creating an Intent to navigate?
✗ Incorrect
The current context is the first parameter to tell where the Intent starts.
How do you retrieve a string extra named "username" in the new activity?
✗ Incorrect
getStringExtra() retrieves string data passed via Intent.
Explain how to navigate from one activity to another using Intent in Android Kotlin.
Think about how you tell the app to open a new screen and share information.
You got /4 concepts.
Describe the role of Context and Intent in activity navigation.
Imagine Context as your current location and Intent as the invitation to go somewhere else.
You got /4 concepts.