Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added FileProvider support for Android #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sreesharp
Copy link

Starting with Android SDK 24 it is no longer allowed to expose the file: path. Instead it's recommended to use the content: URI. More info here:

https://developer.android.com/reference/android/os/FileUriExposedException.html

@qiankf
Copy link

qiankf commented Feb 13, 2019

So after accept your PR, it is also requied to pass the path with "content:uri" format instead of file:path, right?
How to save and get the image in path with content:uri? Thanks!

@johnckendall
Copy link

@sreesharp thanks for this! worked great

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants