Hey guys, I've been overwhelmed by ContentProvider...
# android
n
Hey guys, I've been overwhelmed by ContentProviders and FIleProviders and need some help. I have an image stored on the emulators SD card in the /Pictures direectory, the files path is like this
/storage/1018-2710/Pictures/Sarx7IIJi-o.jpg
, but when I try to share the image I get an error saying
Failed to find configured root that contains /storage/1018-2710/Pictures/Sarx7IIJi-o.jpg
. I have configured everything from the docs , but I cannot figure out which combination I need for my file-paths.xml file. I am currently using this
Copy code
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="<http://schemas.android.com/apk/res/android>">
    <external-path name="external_files" path="/" />
</paths>
But this is the wrong location for the files I need. Basically, I am asking which one of these do I need to be able to access files from the MediaStore.Images ie /Pictures directory. Thank you! I tried googling and reading the docs but that got me to this point.
stackoverflow 2
google 2