Set camera permissions for Android >= 6.0

Starting from Android 6.0 (API level 23), the camera permissions can no longer be requested at application install time. Instead, permissions are requested at runtime. If your application targets API level 23 and higher, you will need to add logic to your application to get access to the camera.

All the samples provided with the SDK include logic to request camera access permissions. You can use them as a starting point for how to request access to the camera. In your aplication, you will most likely want to rely on the functionality implemented by the app compat library for handling the diffences between API versions. For more information on the permissions system introduced in Android 23, take a look at the Android Permission Documentation.