Declaring Android camera permissions
The Scanbot 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 (more about this in the Android developer documentation).
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 Android documentation and our basic example implementation.
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial license