Android Application Development (AND-401) — Question 78
Which of the following is the correct way to add access permission to your application?
Answer options
- A. Add a <uses-permission> tag as a child tag of the <manifest> tag in AndroidManifest.xml
- B. Add a <add-permission> tag as a child tag of the <manifest> tag in AndroidManifest.xml.
- C. Add a <uses-permission> tag as a child tag of the <application> tag in AndroidManifest.xml.
- D. add a <permission> tag as a child tag of the <application> tag in AndroidManifest.xml
Correct answer: A
Explanation
The correct answer is A, as the <uses-permission> tag must be placed within the <manifest> tag to effectively request permissions for an Android application. Options B, C, and D are incorrect because they either use the wrong tag or place it in the wrong section of the AndroidManifest.xml file.