Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adding the right permissions for ZXing
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="nl.versluis.ZXingSample">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<!-- Add these two -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<application android:label="ZXingSample.Android"></application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment