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

Stack Overflow | sama | 3 months ago
  1. 0

    having error when showing alertDialog in asyncTask that is called from service?

    Stack Overflow | 3 months ago | sama
    java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
  2. 0

    DNS issue handled improperly from UnknownHostException

    GitHub | 1 year ago | mwfarb
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. 0

    DialogBox Display in Android Application : How to set Context out of Activity

    Stack Overflow | 4 years ago | aneela
    java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception: An error occured while executing doInBackground()

    Stack Overflow | 1 year ago | karan Singh
    java.lang.RuntimeException: An error occured while executing doInBackground()
  6. 0

    Application crashes every time I click the on product that I bought before

    Stack Overflow | 1 year ago | Nick Carter
    java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

  1. bayukresno 9 times, last 7 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

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

    at android.os.Handler.<init>()
  2. Android Platform
    AlertDialog$Builder.create
    1. android.os.Handler.<init>(Handler.java:197)
    2. android.os.Handler.<init>(Handler.java:111)
    3. android.app.Dialog.<init>(Dialog.java:111)
    4. android.app.AlertDialog.<init>(AlertDialog.java:114)
    5. android.app.AlertDialog$Builder.create(AlertDialog.java:931)
    5 frames
  3. ir.blog.trafik
    BackGround.onPreExecute
    1. ir.blog.trafik.BackGround.onPreExecute(BackGround.java:88)
    1 frame
  4. Android Platform
    AsyncTask.execute
    1. android.os.AsyncTask.executeOnExecutor(AsyncTask.java:586)
    2. android.os.AsyncTask.execute(AsyncTask.java:534)
    2 frames
  5. ir.blog.trafik
    locationService$1.run
    1. ir.blog.trafik.locationService.json_maker(locationService.java:538)
    2. ir.blog.trafik.locationService$1.run(locationService.java:588)
    2 frames
  6. Java RT
    Timer$TimerImpl.run
    1. java.util.Timer$TimerImpl.run(Timer.java:284)
    1 frame