Multiple choice

Which field(s) from manifest.xml has/have to be edited if we want to use camera in our project?

  1. Only uses-permission

  2. Only uses-feature

  3. Both uses-permission and uses-feature

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Manifest.xml file should contain the following code: <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.CAMERA" />