android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

Stack Overflow | Akimoto Akira | 9 months 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 studio AFATAL EXCEPTION: Timer-0

    Stack Overflow | 9 months ago | Akimoto Akira
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  2. 0

    Runtime Error using Timer - Android

    Stack Overflow | 2 years ago | user4549769
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android app data taking from MySql table

    Stack Overflow | 3 years ago | roshanpeter
    java.lang.RuntimeException: An error occured while executing doInBackground()
  6. 0

    Android java crash after thread.start

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

  1. Diogo Jaym 2 times, last 10 months ago
  2. jk 8 times, last 10 months ago
  3. dmitry 1 times, last 1 year ago
1 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. 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:6072)
    2. android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:861)
    3. android.view.View.requestLayout(View.java:16459)
    4. android.view.View.requestLayout(View.java:16459)
    5. android.view.View.requestLayout(View.java:16459)
    6. android.view.View.requestLayout(View.java:16459)
    7. android.view.View.requestLayout(View.java:16459)
    8. android.view.View.requestLayout(View.java:16459)
    9. android.widget.RelativeLayout.requestLayout(RelativeLayout.java:352)
    10. android.view.View.requestLayout(View.java:16459)
    11. android.widget.TextView.checkForRelayout(TextView.java:6607)
    12. android.widget.TextView.setText(TextView.java:3820)
    13. android.widget.TextView.setText(TextView.java:3678)
    14. android.widget.TextView.setText(TextView.java:3653)
    14 frames
  3. com.example.admin
    MainActivity$1.run
    1. com.example.admin.blue.MainActivity$1.run(MainActivity.java:56)
    1 frame