Gunaseelan
Gunaseelan

Reputation: 15535

Sharing image - Failed to find configured root that contains

I can share files those added from other folders except camera. I am getting following exception in Lenova K3 Note.

java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/9016-4EF8/DCIM/Camera/IMG_20180317_111252.jpg

file_paths.xml

<?xml version="1.0" encoding="utf-8"?>
<paths>
   <files-path
       name="Camera"
       path="/Camera/" />
   <files-path
       name="Files"
       path="." />
   <external-path
       name="Downloads"
       path="/Download/" />
   <external-path
       name="WhatsApp"
       path="/WhatsApp/" />
   <external-path
       name="Camera"
       path="/Camera/" />
   <external-path
       name="Others"
       path="." />
   <external-files-path
       name="Camera"
       path="/Camera/" />
   <external-files-path
       name="Files"
       path="." />
</paths>

Upvotes: 2

Views: 1028

Answers (2)

Gunaseelan
Gunaseelan

Reputation: 15535

Yes, You cannot use FileProvider for removable SD card. But you can use root-path with a warning

Element root-path is not allowed here

like following

<root-path
    name="Name"
    path="." />

Upvotes: 5

greenapps
greenapps

Reputation: 11224

can share files those added from other folders except camera

No. Has nothing to do with camera.

You cannot use FileProvider for removable SD card.

Upvotes: 0

Related Questions