Deprecation warning

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

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. 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

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.