Skip to content

Instantly share code, notes, and snippets.

@aivision369
Created August 1, 2018 09:53
Show Gist options
  • Save aivision369/21f0f991bf3f900c9315eea23b50c154 to your computer and use it in GitHub Desktop.
Save aivision369/21f0f991bf3f900c9315eea23b50c154 to your computer and use it in GitHub Desktop.
java.lang.SecurityException: Permission Denial: writing android.support.v4.content.FileProvider uri content://com.app.h20_app.provider/external_files/Pictures/pics/JPEG_20180801_15181191686155.jpg from pid=0, uid=10033 requires the provider be exported, or grantUriPermission()
at android.content.ContentProvider.enforceWritePermissionInner(ContentProvider.java:682)
at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:497)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:335)
at android.content.ContentResolver.delete(ContentResolver.java:1373)
at com.app.h20_app.activity.NewActivity$2.onScanCompleted(NewActivity.java:172)
at android.media.MediaScannerConnection$ClientProxy.onScanCompleted(MediaScannerConnection.java:204)
at android.media.MediaScannerConnection$1.scanCompleted(MediaScannerConnection.java:53)
at android.media.IMediaScannerListener$Stub.onTransact(IMediaScannerListener.java:60)
at android.os.Binder.execTransact(Binder.java:565)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment