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

GitHub | afarra | 6 years 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

    GitHub comment 82#2058880

    GitHub | 6 years ago | afarra
    java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
  2. 0

    Android looper.prepare()

    Stack Overflow | 6 years ago | SirHowy
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.RuntimeException: An error occured while executing doInBackground()

    exasked.com | 2 years ago
    java.lang.RuntimeException: An error occured while executing doInBackground()

  1. Indri Yunita 11 times, last 1 month ago
  2. bmacedo 10 times, last 4 months ago
  3. Rajesh 2 times, last 7 months ago
  4. NedGr8 1 times, last 10 months ago
  5. asvid 4 times, last 10 months ago
5 more registered users
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
    Toast.makeText
    1. android.os.Handler.<init>(Handler.java:121)
    2. android.widget.Toast.<init>(Toast.java:68)
    3. android.widget.Toast.makeText(Toast.java:231)
    3 frames
  3. com.quran.labs
    QuranDataService$DownloadThread.run
    1. com.quran.labs.androidquran.service.QuranDataService$DownloadThread.resumeDownload(QuranDataService.java:344)
    2. com.quran.labs.androidquran.service.QuranDataService$DownloadThread.run(QuranDataService.java:437)
    2 frames