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

Stack Overflow | zuzu_yun | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    FATAL EXCEPTION: JavaBridge - Only the original thread that created a view hierarchy can touch its views

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

    Crash in details of appointment

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

    Failed to handle callback; interface not implemented, callback:com.adobe.flashplayer.FlashPaintSurface$7@41bf1b38

    Stack Overflow | 5 years ago | user1348718
    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
    samebug tip
    Android has some problem with big images, so, probably, the image you're trying to use is too big for Canvas. You can either use Picasso or compress your image to reduce it's size (both pixel wise and filesize wise)

    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
      HandlerThread.run
      1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6891)
      2. android.view.ViewRootImpl.recomputeViewAttributes(ViewRootImpl.java:3247)
      3. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1324)
      4. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1324)
      5. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1324)
      6. android.view.View.setFlags(View.java:11580)
      7. android.view.View.setKeepScreenOn(View.java:7554)
      8. android.view.SurfaceView$1.handleMessage(SurfaceView.java:135)
      9. android.os.Handler.dispatchMessage(Handler.java:102)
      10. android.os.Looper.loop(Looper.java:154)
      11. android.os.HandlerThread.run(HandlerThread.java:61)
      11 frames