java.lang.RuntimeException

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

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

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

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

  • Count All Pictures on Android Tablet
    via Stack Overflow by Toby
    ,
  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Class not working, Error occured?
    via Stack Overflow by Hari
    ,
    • 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.app.ActivityThread.deliverResults(ActivityThread.java:4926) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4969) at android.app.ActivityThread.access$1600(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1850) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7230) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: 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

    Alexandru Popa
    1 times, last one,
    ben.slama.jihed
    37 times, last one,
    Agócs Tamás
    3 times, last one,
    Larten
    3 times, last one,
    filipebatista
    12 times, last one,
    231 more bugmates