Android Application Development (AND-401) — Question 71
Which of the following is not true about <activity> tag in AndroidManifest file?
Answer options
- A. Declares an activity that implements part of the application's visual user interface
- B. Contained in <application> tag.
- C. Declares a single hardware or software feature that is used by the application.
- D. Has an attribute that specifies the name of the Activity sub-class that implements the activity.
Correct answer: C
Explanation
The correct answer is C because the <activity> tag does not declare hardware or software features; that is the role of the <uses-feature> tag. Options A, B, and D are accurate descriptions of the <activity> tag's purpose and structure within the AndroidManifest file.