Knowee
Questions
Features
Study Tools

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
🧐 Not the exact question you are looking for?Go ask a question

Solution

The attribute used to specify the entry point for an Android app is D. intent-filter.

Here's a step-by-step explanation:

  1. In Android, the entry point of the application is usually an activity. An activity represents a single screen with a user interface.

  2. In the AndroidManifest.xml file, you define your activity.

  3. To specify that this activity is the entry point of your application, you need to add an <intent-filter> element in your activity definition.

  4. 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".

  5. 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.

This problem has been solved

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.