-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional android fileprovider. #1922
base: develop
Are you sure you want to change the base?
Conversation
Has this been ignored and abandoned, or has anything similar made its way in? Struggling to have my kivy app open an external app. |
Flagging that we are using this support as well and it would be nice if we could get it merged! :) |
I'm trying to share a file on Android 10, which seems pretty basic functionality. But permissions means I need to create a 'content' Uri rather than a 'file' Uri. Seems the only way to do this is via a ContentProvider such as FileProvider, but this requires androidx. So
Thanks again. |
@Fak3 thank you for the pull request and sorry that it wasn't reviewed earlier.
Ideally squash the commits after addressing so the PR is still one commit |
Seems to be a must API 30 onwards. |
Unfortunately the original branch has conflicts with the See also this example to see it in action: |
@Fak3 Any word on resolving the conflicts? Would be nice to get this in..... |
There is another way to generate a uri : |
https://developer.android.com/reference/android/support/v4/content/FileProvider
If the option
--fileprovider-paths=./mypaths.xml
is given, then this xml file iscopied to apk
res/xml/file_paths.xml
and<provider>
is added to the AndroidManifest.xml