java.lang.RuntimeException

tip

Any worker thread runs in background, since it is not intended to loop, is not connected to a Looper.for example doInBackground().
its implementation returns will be passed to onPostExecute() which runs on the UI thread.

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

  • Access method from AsyncTask
    via by Unknown author,
  • Taplytics Crashes app
    via GitHub by renclav
    ,
  • Jagadeesh Kumar Reddy - Google+
    via by Unknown author,
    • java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.<init>(Handler.java:200) at android.os.Handler.<init>(Handler.java:114) at com.permissioneverywhere.PermissionRequest.enqueue(PermissionRequest.java:61) at com.shygunsys.pocketcyber.locationservice.TLocationManager.updateLocation(TLocationManager.java:153) at com.shygunsys.pocketcyber.locationservice.TLocationManager.reset(TLocationManager.java:348) at com.shygunsys.pocketcyber.syncService.ShygunLocationSyncServicePost.DoSync(ShygunLocationSyncServicePost.java:88) at com.shygunsys.pocketcyber.syncService.TShygunSyncService.doInBackground(TShygunSyncService.java:139) at com.shygunsys.pocketcyber.syncService.TShygunSyncService.doInBackground(TShygunSyncService.java:33) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) 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)

    Users with the same issue

    winer222
    1 times, last one,
    Akshay
    131 times, last one,
    adawolfs
    13 times, last one,
    jk
    5 times, last one,
    Riyaz
    2 times, last one,
    35 more bugmates