Skip to content Skip to sidebar Skip to footer

How To Share Files From Any Path Using A Fileprovider?

My app allows the user to download some content and store it in the folder of his choice. I want to create a ContentProvider to share those files, but I don't know how to do that

Solution 1:

Is there a way share files from the SD card for example ?

Use <external-path> instead of <files-path>. The documentation for FileProviderhas a bug; <external-path> maps to Environment.getExternalStorageDirectory().

Post a Comment for "How To Share Files From Any Path Using A Fileprovider?"