java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

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

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.wolter.WebViewActivity$OpenWebviewTask.doInBackground(WebViewActivity.java:541) at com.wolter.WebViewActivity$OpenWebviewTask.doInBackground(WebViewActivity.java:512) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) 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)

    Users with the same issue

    winer222
    winer2221 times, last one,
    Akshay
    Akshay131 times, last one,
    adawolfs
    adawolfs13 times, last one,
    jk
    jk5 times, last one,
    Riyaz
    Riyaz2 times, last one,
    35 more bugmates