Skip to main content

Permissions | Android Barcode Scanner

Add camera permission

The Scanbot Barcode Scanner SDK needs access to the device camera so it can scan from a live camera stream. Therefore, the camera permission android.permission.CAMERA must be defined in the AndroidManifest.xml file.

<manifest xmlns:android="http://schemas.android.com/apk/res/android" ...>

<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />

<application ...>

Note how we also added the uses-feature tag for better recognition of your app on the Google Play Store (see more).

Since Android 6.0 (API level 23) you also have to implement a suitable permission requesting and handling at runtime. For more details, please refer to the official Android docs "Request App Permissions" as well as our basic example implementation.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top