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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Message chat doesn't work well
    via Stack Overflow by Carlo
    ,
  • Runtime Error using Timer - Android
    via Stack Overflow by user4549769
    ,
  • Android app data taking from MySql table
    via Stack Overflow by roshanpeter
    ,
  • Android java crash after thread.start
    via Stack Overflow by Rob
    ,
    • android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6353) at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:875) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.view.View.requestLayout(View.java:17524) at android.widget.AbsListView.requestLayout(AbsListView.java:2027) at android.widget.AbsListView.setSelectionFromTop(AbsListView.java:7045) at android.widget.ListView.setSelection(ListView.java:2018) at gamingproject.sellmybooks.Messages$3.onChanged(Messages.java:74) at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37) at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50) at android.widget.ArrayAdapter.notifyDataSetChanged(ArrayAdapter.java:286) at android.widget.ArrayAdapter.add(ArrayAdapter.java:182) at gamingproject.sellmybooks.ChatArrayAdapter.add(ChatArrayAdapter.java:22) at gamingproject.sellmybooks.Messages.receiveChatMessage(Messages.java:104) at gamingproject.sellmybooks.Messages.access$300(Messages.java:23) at gamingproject.sellmybooks.Messages$4.run(Messages.java:83) at java.util.Timer$TimerImpl.run(Timer.java:284)

    Users with the same issue

    Indri Yunita
    Indri Yunita2 times, last one,
    Unknown visitor1 times, last one,
    filpgame
    filpgame7 times, last one,
    Donsy
    Donsy4 times, last one,
    malhobayyeb
    malhobayyeb4 times, last one,
    27 more bugmates