-
-
Save KatieBarnett/81cc9ff5b90fb8a99c4397bc56f5f7b3 to your computer and use it in GitHub Desktop.
ImageFileProvider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <manifest> | |
| <application> | |
| ... | |
| <provider | |
| android:name=".widget.image.ImageFileProvider" | |
| android:authorities="${applicationId}.provider" | |
| android:exported="false" | |
| android:grantUriPermissions="true"> | |
| <meta-data | |
| android:name="android.support.FILE_PROVIDER_PATHS" | |
| android:resource="@xml/image_paths" /> | |
| </provider> | |
| </application> | |
| </manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <paths> | |
| <cache-path name="widget_images" path="image_cache/" /> | |
| </paths> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ImageFileProvider : FileProvider() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment