1/11
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
How do you start a new Activity using an Intent?
startService(intent)
startContent(intent)
startBroadcast(intent)
startActivity(intent)
startActivity(intent)
We can not instantiate UI elements during runtime.
True
False
False
View is something that the user can see and interact with.
True
False
True
What are the main types of Intents?
Internal and External
Direct and Indirect
Static and Dynamic
Correct answer:
Explicit and Implicit
Explicit and Implicit
An app is running in the foreground when a phone call arrives, displaying a small dialog-themed incoming call window over the top of the app. The user can still see the app's UI partially blurred or obscured in the background. Which lifecycle method is called on the main activity when this dialog appears?
onDestroy()
onStop()
onSaveInstanceState()
onPause()
onPause()
Activity class takes care of creating a window for you in which you can place your UI with setContentView(View)
True
False
True
Activity is one of the most important component for any android app. Activities are the User Interface (UI) screens which user see.
True
False
True
We can use the Intent.getExtras() in the target activity/class to get the attached bundle and extract the data stored in it.
True
False
True
Linear layout is an example of ______________.
Layout Attributes
ViewGroup
Controls
View
ViewGroup
The onClickListener is an event handler.
True
False
False
Intent can be use to launch an activity.
True
False
True
When you switch from one activity to another, the first activity will no longer be visible on your screen, in this case, the callback method ___________ is called.
onPause()
onResume()
onDestroy()
onStop()
onStop()