java.lang.RuntimeException

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.

  • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.gallery3d.provider.GalleryProvider from ProcessRecord{43bf86e8 21926:com.example.picasatest/u0a156} (pid=21926, uid=10156) requires com.google.android.gallery3d.permission.GALLERY_PROVIDER or com.google.android.gallery3d.permission.GALLERY_PROVIDER at android.os.Parcel.readException(Parcel.java:1465) at android.os.Parcel.readException(Parcel.java:1419) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:2848) at android.app.ActivityThread.acquireProvider(ActivityThread.java:4399) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2200) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1425) at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1047) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:904) at android.content.ContentResolver.openInputStream(ContentResolver.java:629) at com.example.picasatest.android.lib.util.ImageUtil.resizeToFileFromOtherProvider(ImageUtil.java:129) at com.example.picasatest.android.lib.util.ImageUtil.resizeToFile(ImageUtil.java:57) at com.example.picasatest.util.ImageResizeTask.doInBackground(ImageResizeTask.java:53) at com.example.picasatest.util.ImageResizeTask.doInBackground(ImageResizeTask.java:14) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more

Users with the same issue

iridic
157 times, last one,
Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
filipebatista
12 times, last one,
229 more bugmates