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

Stack Overflow | Carlo | 5 months ago
  1. 0

    Message chat doesn't work well

    Stack Overflow | 5 months ago | Carlo
    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
      ListView.setSelection
      1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6353)
      2. android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:875)
      3. android.view.View.requestLayout(View.java:17524)
      4. android.view.View.requestLayout(View.java:17524)
      5. android.view.View.requestLayout(View.java:17524)
      6. android.view.View.requestLayout(View.java:17524)
      7. android.view.View.requestLayout(View.java:17524)
      8. android.view.View.requestLayout(View.java:17524)
      9. android.view.View.requestLayout(View.java:17524)
      10. android.widget.AbsListView.requestLayout(AbsListView.java:2027)
      11. android.widget.AbsListView.setSelectionFromTop(AbsListView.java:7045)
      12. android.widget.ListView.setSelection(ListView.java:2018)
      12 frames
    3. gamingproject.sellmybooks
      Messages$3.onChanged
      1. gamingproject.sellmybooks.Messages$3.onChanged(Messages.java:74)
      1 frame
    4. Android Platform
      ArrayAdapter.add
      1. android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
      2. android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
      3. android.widget.ArrayAdapter.notifyDataSetChanged(ArrayAdapter.java:286)
      4. android.widget.ArrayAdapter.add(ArrayAdapter.java:182)
      4 frames
    5. gamingproject.sellmybooks
      Messages$4.run
      1. gamingproject.sellmybooks.ChatArrayAdapter.add(ChatArrayAdapter.java:22)
      2. gamingproject.sellmybooks.Messages.receiveChatMessage(Messages.java:104)
      3. gamingproject.sellmybooks.Messages.access$300(Messages.java:23)
      4. gamingproject.sellmybooks.Messages$4.run(Messages.java:83)
      4 frames
    6. Java RT
      Timer$TimerImpl.run
      1. java.util.Timer$TimerImpl.run(Timer.java:284)
      1 frame