Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Android

Android 6.0 and Camera Permissions

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.