Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Created August 22, 2018 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/281434d0f3e5b92c3f5a4547e76edd26 to your computer and use it in GitHub Desktop.
Save jfversluis/281434d0f3e5b92c3f5a4547e76edd26 to your computer and use it in GitHub Desktop.
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