java.lang.RuntimeException

Failure delivering result ResultInfo{who=null, request=2002, result=-1, data=Intent { dat=content://org.openintents.filemanager/mnt/sdcard/cover.jpeg (has extras) }} to activity {com.me.chat/com.me.chat.ConversationActivity}: java.lang.SecurityException: Permission Denial: opening provider org.openintents.filemanager.FileManagerProvider from ProcessRecord{40859590 3455:com.me.chat/10039} (pid=3455, uid=10039) requires android.permission.READ_EXTERNAL_STORAGE or android.permission.READ_EXTERNAL_STORAGE

Samebug tips5

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


rafaelrafael

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()


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1308

  • via Stack Overflow by rogcg
    ,
  • via Stack Overflow by user2850116
    ,
  • Stack trace

    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2002, result=-1, data=Intent { dat=content://org.openintents.filemanager/mnt/sdcard/cover.jpeg (has extras) }} to activity {com.me.chat/com.me.chat.ConversationActivity}: java.lang.SecurityException: Permission Denial: opening provider org.openintents.filemanager.FileManagerProvider from ProcessRecord{40859590 3455:com.me.chat/10039} (pid=3455, uid=10039) requires android.permission.READ_EXTERNAL_STORAGE or android.permission.READ_EXTERNAL_STORAGE at android.app.ActivityThread.deliverResults(ActivityThread.java:2496) at android.app.ActivityThread.handleSendResult(ActivityThread.java:2538) at android.app.ActivityThread.access$2000(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3647) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.SecurityException: Permission Denial: opening provider org.openintents.filemanager.FileManagerProvider from ProcessRecord{40859590 3455:com.me.chat/10039} (pid=3455, uid=10039) requires android.permission.READ_EXTERNAL_STORAGE or android.permission.READ_EXTERNAL_STORAGE at android.os.Parcel.readException(Parcel.java:1322) at android.os.Parcel.readException(Parcel.java:1276) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:1882) at android.app.ActivityThread.getProvider(ActivityThread.java:3311) at android.app.ActivityThread.acquireProvider(ActivityThread.java:3336) at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1634) at android.content.ContentResolver.acquireProvider(ContentResolver.java:748) at android.content.ContentResolver.query(ContentResolver.java:256) at com.me.chat.ConversationActivity.onActivityResult(ConversationActivity.java:145) at android.app.Activity.dispatchActivityResult(Activity.java:3907) at android.app.ActivityThread.deliverResults(ActivityThread.java:2492) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    SacchiSacchi
    194 times, last one
    filipebatistafilipebatista
    21 times, last one
    winer222winer222
    3 times, last one
    Indri YunitaIndri Yunita
    8 times, last one
    gamebusterzgamebusterz
    7 times, last one
    234 more bugmates