Skip to content Skip to sidebar Skip to footer

FileProvider Error "Failed To Find Configured Root That Contains /data/data/sawbodeployer.entm.illinois.edu ..."

I download video by android download manager and want to share this video, I follow through Manifas

Solution 1:

Replace:

<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <files-path name="video_folder" path="files/"/>
    <files-path name="name" path="path" />
</paths>

with:

<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <files-path name="video_folder" />
</paths>

path is used when there is some specific subdirectory under the root that you want to serve from. Your file is directly in getFilesDir(), and so you cannot use path.


Post a Comment for "FileProvider Error "Failed To Find Configured Root That Contains /data/data/sawbodeployer.entm.illinois.edu ...""