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.

  • GoTo – Personal portfolio of GT
    via by Unknown author,
  • FileProvider Not Working with Camera
    via Stack Overflow by You Qi
    ,
  • GitHub comment 306#275831194
    via GitHub by yadav-rahul
    ,
  • Camera crashes, when trying to save fileI
    via Stack Overflow by Koroqe
    ,
    • java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.SecurityException: Permission Denial: opening provider com.google.android.apps.docs.storagebackend.StorageBackendContentProvider from ProcessRecord{2769f52 8343:ca.rmen.android.poetassistant/u0a182} (pid=8343, uid=10182) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:4240) at android.app.ActivityThread.acquireProvider(ActivityThread.java:6391) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2382) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1521) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:993) at android.content.ContentResolver.openOutputStream(ContentResolver.java:751) at ca.rmen.android.poetassistant.main.reader.PoemFile$2.doInBackground$d54f4d4(PoemFile.java:98) at ca.rmen.android.poetassistant.main.reader.PoemFile$2.doInBackground(PoemFile.java:93) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more

    Users with the same issue

    filipebatista
    21 times, last one,
    Hiren Amaliyar
    8 times, last one,
    Aravind
    86 times, last one,
    Indri Yunita
    199 times, last one,
    Unknown User
    4 times, last one,
    229 more bugmates