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

GitHub | kumy | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Static map load forever

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

    GitHub comment 5915#255351341

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

    StaticMapsActivity modifies reads and writes adapter outside the main thread

    GitHub | 4 months ago | samueltardieu
    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

    Android populating spinners from other spinners

    Stack Overflow | 4 years ago | cmb
    java.lang.RuntimeException: An error occured while executing doInBackground()
  6. 0

    Listview FATAL EXCEPTION: AsyncTask #1 when calling from inside doInBackground

    Stack Overflow | 4 years ago | Ruben Pizarro
    java.lang.RuntimeException: An error occured while executing doInBackground()

    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
      ArrayAdapter.add
      1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6566)
      2. android.view.ViewRootImpl.focusableViewAvailable(ViewRootImpl.java:3042)
      3. android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
      4. android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
      5. android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
      6. android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:761)
      7. android.view.View.setFlags(View.java:10565)
      8. android.view.View.setFocusableInTouchMode(View.java:7508)
      9. android.widget.AdapterView.checkFocus(AdapterView.java:744)
      10. android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:839)
      11. android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6203)
      12. android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
      13. android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
      14. android.widget.ArrayAdapter.notifyDataSetChanged(ArrayAdapter.java:301)
      15. android.widget.ArrayAdapter.add(ArrayAdapter.java:197)
      15 frames
    3. cgeo.geocaching.staticmaps
      StaticMapsActivity$LoadMapsThread.run
      1. cgeo.geocaching.staticmaps.StaticMapsActivity$LoadMapsThread.run(StaticMapsActivity.java:100)
      1 frame