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

GitHub | daniele-athome | 3 months ago
  1. 0

    Drawable created from another thread

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

    App crashes on clicking on same item

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

    Automated exception search integrated into your IDE

  4. 0

    MillennialMedia SDK custom close silently fails

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

    Robotium - Community - Google+

    google.com | 5 months ago
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

    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
      Drawable.setBounds
      1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6814)
      2. android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:978)
      3. android.view.ViewGroup.invalidateChild(ViewGroup.java:5100)
      4. android.view.View.invalidateInternal(View.java:12826)
      5. android.view.View.invalidate(View.java:12790)
      6. android.view.View.invalidate(View.java:12774)
      7. android.widget.ImageView.invalidateDrawable(ImageView.java:248)
      8. android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:387)
      9. android.graphics.drawable.ShapeDrawable.updateShape(ShapeDrawable.java:476)
      10. android.graphics.drawable.ShapeDrawable.onBoundsChange(ShapeDrawable.java:333)
      11. android.graphics.drawable.Drawable.setBounds(Drawable.java:170)
      11 frames
    3. org.kontalk.util
      MessageUtils.drawableToBitmap
      1. org.kontalk.util.MessageUtils.drawableToBitmap(MessageUtils.java:882)
      1 frame
    4. org.kontalk.ui
      MessagingNotification$1.run
      1. org.kontalk.ui.MessagingNotification.updateMessagesNotification(MessagingNotification.java:368)
      2. org.kontalk.ui.MessagingNotification$1.run(MessagingNotification.java:146)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:833)
      1 frame