Skip to content

Instantly share code, notes, and snippets.

@sreejithraman
Created March 17, 2017 00:35
Show Gist options
  • Save sreejithraman/8bb8c0d1d2b164b93091dc2141478551 to your computer and use it in GitHub Desktop.
Save sreejithraman/8bb8c0d1d2b164b93091dc2141478551 to your computer and use it in GitHub Desktop.
<application>
...
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="{your.app.package}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"/>
</provider>
...
</application>
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
</paths>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment