September 2019
Beginner
512 pages
12h 52m
English
In Android, we need to declare the camera permission in the AndroidManifest file as we did for the contacts, so we change the android/app/src/(main|debug|profile)/AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.handson"> ... <uses-permission android:name="android.permission.CAMERA" /></manifest>
By adding the CAMERA permission, we declare to the Android system that we need to access the camera. Additionally, we can use another Android manifest tag:
<manifest ...> <uses-feature android:name="android.hardware.camera" android:required="false" /></manifest>
The uses-feature tag will declare that our app needs the camera to work properly (again, in ...
Read now
Unlock full access