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

Stack Overflow | SJSSoft | 2 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

    Android: Display current track Info in mediaplayer using webpage

    Stack Overflow | 2 years ago | SJSSoft
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0

    Crash: MapActivity responding to CellScanner, updates on wrong thread

    GitHub | 3 years ago | garvankeeley
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  3. 0

    Android app data taking from MySql table

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

    Automated exception search integrated into your IDE

  5. 0

    Android java crash after thread.start

    Stack Overflow | 3 years ago | Rob
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  6. 0

    Cannot pass data to EditText from Mysql

    Stack Overflow | 3 years ago | Juraganerka
    java.lang.RuntimeException: An error occured 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. android.view.ViewRootImpl$CalledFromWrongThreadException

    Only the original thread that created a view hierarchy can touch its views.

    at android.view.ViewRootImpl.checkThread()
  2. Android Platform
    TextView.setText
    1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:5969)
    2. android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:921)
    3. android.view.ViewGroup.invalidateChild(ViewGroup.java:4276)
    4. android.view.View.invalidate(View.java:10552)
    5. android.view.View.invalidate(View.java:10507)
    6. android.widget.TextView.checkForRelayout(TextView.java:6531)
    7. android.widget.TextView.setText(TextView.java:3789)
    8. android.widget.TextView.setText(TextView.java:3643)
    9. android.widget.TextView.setText(TextView.java:3618)
    9 frames
  3. com.prgguru.example
    MusicAndroidActivity$LoadWebPageASYNC.doInBackground
    1. com.prgguru.example.MusicAndroidActivity$LoadWebPageASYNC.doInBackground(MusicAndroidActivity.java:158)
    2. com.prgguru.example.MusicAndroidActivity$LoadWebPageASYNC.doInBackground(MusicAndroidActivity.java:152)
    2 frames
  4. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:287)
    1 frame
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:234)
    1 frame