Which attribute is used to specify the entry point for an Android app?Amain-classBstart-activityClaunch-activityDintent-filter
Question
Which attribute is used to specify the entry point for an Android app?
- A.
main-class
- B.
start-activity
- C.
launch-activity
- D.
intent-filter
Solution
The attribute used to specify the entry point for an Android app is D. intent-filter.
Here's a step-by-step explanation:
-
In Android, the entry point of the application is usually an activity. An activity represents a single screen with a user interface.
-
In the AndroidManifest.xml file, you define your activity.
-
To specify that this activity is the entry point of your application, you need to add an <intent-filter> element in your activity definition.
-
Inside the <intent-filter>, you need to include the <action> element with "android.intent.action.MAIN" and the <category> element with "android.intent.category.LAUNCHER".
-
This intent filter setup will tell the Android system that this activity is the main entry point of the application, i.e., when the user taps your app icon on the home screen, this activity will be launched.
So, the correct answer is D. intent-filter.
Similar Questions
Which of the following is NOT a part of the Android Application Framework? Activity Window Display Driver Content Manager
What does API stand for?*1 pointApplication Program InterfaceApplicant Programming InteractionApplication Programming InterfaceApplication Platform Interface
Which of the following is the attribute that is used to set a global identifier for a microdata item?*1 pointa) keyb) idc) itemclassd) itemid
Which among the following intent action helps us in sending email through Android? ACTION_SEND ACTION_MAIL ACTION_EMAIL
Which class in Android is responsible for managing the application's preferences?ASharedPreferencesBPreferenceManagerCPreferenceActivityDPreferenceFragment
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.