Closed bartekpacia closed 4 years ago
This is fixed specifying a cache-path in your file provider
i.e.:
<paths>
...
<cache-path name="cache_files" path="some_cache_path"/>
...
</paths>
shame to say this but I "figured it out" a few days ago, but I forgot how. Will try to post a solution here soon :)
did you found solution?
oh god, sorry
I did but I forgot to post it and don't remember anything
sorry I'm dumb
Hi Team,
I got the solution for this by implementing like below
/**file_paths.xml**/ <?xml version="1.0" encoding="utf-8"?>
/* In Manifest file inside application***/
<provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/>
/* In Manifest file outside application***/
When I open the photo picker fragment and click Camera, I immediately get the following exception:
What should I do?
I'm on Android 10 and have the following in my
AndroidManifest.xml
:This is
file_paths.xml
: