java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1234, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1404 flg=0x1 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }} to activity {damasoft.manumikychat/damasoft.manumikychat.Page1}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=7522, uid=10134 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

Solutions on the web

via Stack Overflow by Elia D&#39;Amato
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1234, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1404 flg=0x1 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }} to activity
via Stack Overflow by jijo
, 10 months ago
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
via Stack Overflow by luke
, 8 months ago
Failure delivering result ResultInfo{who=null, request=3, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/video:21079 flg=0x1 }} to activity {com.example.luke.upload/com.example.luke.upload.UploadActivity
via Stack Overflow by Carson
, 11 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.contacts/contacts/lookup/1131i2d69e7958b254b56.3771i1458060718948/539 flg=0x1 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags
via Stack Overflow by Diogo Rosa
, 9 months ago
Failure delivering result ResultInfo{who=null, request=395, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/0/1/mediakey:/local%3Aa5d242bb-653d-466b-8d62-4d5124d4628d/ORIGINAL/NONE/1662516450 flg=0x1
via GitHub by ajalt
, 11 months ago
Failure delivering result ResultInfo{who=@android:requestPermissions:android:fragment:0, request=42, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} (has
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1234, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1404 flg=0x1 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }} to activity {damasoft.manumikychat/damasoft.manumikychat.Page1}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=7522, uid=10134 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1620)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
at android.content.ContentResolver.query(ContentResolver.java:502)
at android.content.ContentResolver.query(ContentResolver.java:445)
at com.ipaulpro.afilechooser.utils.FileUtils.getDataColumn(FileUtils.java:228)
at com.ipaulpro.afilechooser.utils.FileUtils.getPath(FileUtils.java:322)
at damasoft.manumikychat.Page1.onActivityResult(Page1.java:253)
at android.app.Activity.dispatchActivityResult(Activity.java:7138)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4922)

Users with the same issue

4 times, 11 months ago
2 times, 1 year ago
2 times, 1 year ago
Once, 1 year ago
3 times, 1 year ago
251 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.