Skip to content

Commit

Permalink
Declare permission at AndroidManifest.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
donglua committed Jan 9, 2017
1 parent fae1a17 commit cd76a52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion PhotoPicker/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="me.iwf.photopicker"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA" />

<application>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/__picker_provider_paths"/>
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/__picker_provider_paths"/>
</provider>
</application>
</manifest>

0 comments on commit cd76a52

Please sign in to comment.