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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by kumy
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Andrus Asumets
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by 1kpunep1
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Tolgay Toklar
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Basim Sherif
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Simon
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6566)
at android.view.ViewRootImpl.focusableViewAvailable(ViewRootImpl.java:3042)
at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
at android.view.View.setFlags(View.java:10565)
at android.view.View.setFocusableInTouchMode(View.java:7508)
at android.widget.AdapterView.checkFocus(AdapterView.java:744)
at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:839)
at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6203)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
at android.widget.ArrayAdapter.notifyDataSetChanged(ArrayAdapter.java:301)
at android.widget.ArrayAdapter.add(ArrayAdapter.java:197)
at cgeo.geocaching.staticmaps.StaticMapsActivity$LoadMapsThread.run(StaticMapsActivity.java:100)

Users with the same issue

Once, 6 months ago
2 times, 8 months ago
7 times, 10 months ago
4 times, 11 months ago
4 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.