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

Stack Overflow | Ankit | 2 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    download zip file using download manager and extract immediate after file download android

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

    File download failing

    Google Groups | 5 years ago | Karakuri Dev
    libcore.io.ErrnoException: open failed: EACCES (Permission denied)
  3. 0

    SMS Manager property instantiation vs in method instantiation causing error

    Stack Overflow | 3 months ago | Vlad is Glad
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SharedPreferences: extends Activity crashes App (Android forum at Coderanch)

    coderanch.com | 5 months ago
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  6. 0

    SharedPreferences: extends Activity crashes App (Android forum at Coderanch)

    coderanch.com | 5 months ago
    java.lang.RuntimeException: An error occurred while executing doInBackground()
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
    Handler.<init>
    1. android.os.Handler.<init>(Handler.java:200)
    2. android.os.Handler.<init>(Handler.java:114)
    2 frames
  3. com.wolter
    WebViewActivity$OpenWebviewTask.doInBackground
    1. com.wolter.WebViewActivity$OpenWebviewTask.doInBackground(WebViewActivity.java:541)
    2. com.wolter.WebViewActivity$OpenWebviewTask.doInBackground(WebViewActivity.java:512)
    2 frames
  4. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:288)
    1 frame
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  6. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    1 frame
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:841)
    3 frames