java.lang.RuntimeException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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

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

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.

  • Android Volley Tutorial to Upload Image to Server
    via by Unknown author,
  • UserManager getUserCount() (Jelly Bean)
    via Stack Overflow by Kedi
    ,
  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Dealing with Download Listener in Android
    via Stack Overflow by Alok Kumar
    ,
    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/98657 (has extras) }} to activity {com.vhiefa.simplecrud/com.vhiefa.simplecrud.CreateActivityIGD}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/98657 from pid=15920, uid=10272 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() at android.app.ActivityThread.deliverResults(ActivityThread.java:3700) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3743) at android.app.ActivityThread.access$1400(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5653) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/98657 from pid=15920, uid=10272 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() at android.os.Parcel.readException(Parcel.java:1465) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:148) at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:682) at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1073) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:913) at android.content.ContentResolver.openInputStream(ContentResolver.java:638) at android.provider.MediaStore$Images$Media.getBitmap(MediaStore.java:846) at com.vhiefa.simplecrud.CreateActivityIGD.onActivityResult(CreateActivityIGD.java:173) at android.app.Activity.dispatchActivityResult(Activity.java:5734) at android.app.ActivityThread.deliverResults(ActivityThread.java:3696) ... 11 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    filipebatista
    12 times, last one,
    Hiren Amaliyar
    8 times, last one,
    Aravind
    86 times, last one,
    229 more bugmates