java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=22131, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:33233 flg=0x1 }} to activity {com.example.jijoabraham.informe/com.example.jijoabraham.informe.Sales}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=2525, uid=10347 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

Stack Overflow | jijo | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to solve SecurityException: Permission Denial error on API 23 (Marshmallow)?

    Stack Overflow | 1 year ago | letmetry7
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:53790 flg=0x1 }} to activity {com.ummahtalk.network/com.ummahtalk.network.activities.posts.PublishActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=14882, uid=10166 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
  2. 0

    Screenshot uploader widget

    GitHub | 1 year ago | timrijckaert
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=131073, result=-1, data=Intent { dat=content://media/external/images/media/2821 }} to activity {our.app.namespace/com.usabilla.sdk.ubform.ui.FeedbackFormActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/2821 from pid=26295, uid=10290 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
  3. 0

    App crash on api 23 multidex on 19 api

    Stack Overflow | 10 months ago | Shailesh Bandil
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { dat=content://media/external/images/media/47 }} to activity {com.location.abc.kharcha/com.location.abc.kharcha.Expense_main}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/47 from pid=2963, uid=10057 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Error in Upload Image Using PHP MySQL and Display Images in ListView

    Stack Overflow | 1 year ago | marian
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/2501 (has extras) }} to activity {com.example.dothis.imagefeed/com.example.dothis.imagefeed.MainActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/2501 from pid=9846, uid=10222 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() at android.app.ActivityThread.deliverResults(ActivityThread.java:3681) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3724)
  6. 0

    Uploading an image from phone storage

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/7963 (has extras) }} to activity {com.progrmor.tombstone.android/com.progrmor.tombstone.android.AndroidLauncher}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/7963 from pid=16802, uid=10409 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=2525, uid=10347 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

    at android.os.Parcel.readException()
  2. Android Platform
    ContentResolver.query
    1. android.os.Parcel.readException(Parcel.java:1620)
    2. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
    3. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
    4. android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
    5. android.content.ContentResolver.query(ContentResolver.java:502)
    6. android.content.ContentResolver.query(ContentResolver.java:445)
    6 frames
  3. com.kosalgeek.android
    GalleryPhoto.getPath
    1. com.kosalgeek.android.photoutil.RealPathUtil.getDataColumn(RealPathUtil.java:131)
    2. com.kosalgeek.android.photoutil.RealPathUtil.getRealPathFromURI_API19(RealPathUtil.java:62)
    3. com.kosalgeek.android.photoutil.GalleryPhoto.getPath(GalleryPhoto.java:49)
    3 frames
  4. com.example.jijoabraham
    Sales.onActivityResult
    1. com.example.jijoabraham.informe.Sales.onActivityResult(Sales.java:143)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.dispatchActivityResult(Activity.java:7137)
    2. android.app.ActivityThread.deliverResults(ActivityThread.java:4921)
    3. android.app.ActivityThread.handleSendResult(ActivityThread.java:4968)
    4. android.app.ActivityThread.access$1600(ActivityThread.java:222)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849)
    6. android.os.Handler.dispatchMessage(Handler.java:102)
    7. android.os.Looper.loop(Looper.java:158)
    8. android.app.ActivityThread.main(ActivityThread.java:7229)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames