Java.lang.securityexception: Permission Denial: Writing Android.support.v4.content.fileprovider Uri
I am trying to use camera and save image. Followed the steps as commonsware suggested. Constantly I am getting error - 2018-11-12 02:10:54.588 3145-3173/com.bisw.weac E/DatabaseUt
Solution 1:
You need to add the following in provider declaration in your manifest file
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="<application-id>.fileprovider" // com.abc.def
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
Post a Comment for "Java.lang.securityexception: Permission Denial: Writing Android.support.v4.content.fileprovider Uri"