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
    ,
    • 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() at android.app.ActivityThread.deliverResults(ActivityThread.java:4925) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4968) at android.app.ActivityThread.access$1600(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) 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=2525, uid=10347 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.kosalgeek.android.photoutil.RealPathUtil.getDataColumn(RealPathUtil.java:131) at com.kosalgeek.android.photoutil.RealPathUtil.getRealPathFromURI_API19(RealPathUtil.java:62) at com.kosalgeek.android.photoutil.GalleryPhoto.getPath(GalleryPhoto.java:49) at com.example.jijoabraham.informe.Sales.onActivityResult(Sales.java:143) at android.app.Activity.dispatchActivityResult(Activity.java:7137) at android.app.ActivityThread.deliverResults(ActivityThread.java:4921) ... 9 more

    Users with the same issue

    Alexandru PopaAlexandru Popa
    1 times, last one,
    ben.slama.jihedben.slama.jihed
    37 times, last one,
    Agócs TamásAgócs Tamás
    3 times, last one,
    LartenLarten
    3 times, last one,
    filipebatistafilipebatista
    21 times, last one,
    231 more bugmates