java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]

GitHub | XieZhiFa | 2 months ago
  1. 0

    GitHub comment 19#249489160

    GitHub | 2 months ago | XieZhiFa
    java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]
  2. 0

    程序有两个bug 直接闪退。

    GitHub | 2 months ago | XieZhiFa
    java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]
  3. 0

    Crash[The content of the adapter has changed but ListView did not receive a notification.]

    GitHub | 5 months ago | baiguangyuan
    java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Beginning Android, App Crash

    Stack Overflow | 4 weeks ago | Adniwhack
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
  6. 0

    (ArrayAdapter requires the resource ID to be a TextView) but I am only using ListView

    Stack Overflow | 5 months ago | Anca Mihai
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView

  1. sagar 1 times, last 9 months ago
4 unregistered visitors
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. java.lang.IllegalStateException

    The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]

    at android.widget.ListView.layoutChildren()
  2. Android Platform
    ViewGroup.layout
    1. android.widget.ListView.layoutChildren(ListView.java:1562)
    2. android.widget.AbsListView.onLayout(AbsListView.java:2151)
    3. android.view.View.layout(View.java:15685)
    4. android.view.ViewGroup.layout(ViewGroup.java:5039)
    5. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    6. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    7. android.view.View.layout(View.java:15685)
    8. android.view.ViewGroup.layout(ViewGroup.java:5039)
    9. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    10. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    11. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    12. android.view.View.layout(View.java:15685)
    13. android.view.ViewGroup.layout(ViewGroup.java:5039)
    14. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    15. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    16. android.view.View.layout(View.java:15685)
    17. android.view.ViewGroup.layout(ViewGroup.java:5039)
    17 frames
  3. Android v7
    ActionBarOverlayLayout.onLayout
    1. android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:15685)
    2. android.view.ViewGroup.layout(ViewGroup.java:5039)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    5. android.view.View.layout(View.java:15685)
    6. android.view.ViewGroup.layout(ViewGroup.java:5039)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    10. android.view.View.layout(View.java:15685)
    11. android.view.ViewGroup.layout(ViewGroup.java:5039)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    14. android.view.View.layout(View.java:15685)
    15. android.view.ViewGroup.layout(ViewGroup.java:5039)
    16. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2123)
    17. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1880)
    18. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1098)
    19. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5933)
    20. android.view.Choreographer$CallbackRecord.run(Choreographer.java:775)
    21. android.view.Choreographer.doCallbacks(Choreographer.java:588)
    22. android.view.Choreographer.doFrame(Choreographer.java:558)
    23. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:761)
    24. android.os.Handler.handleCallback(Handler.java:739)
    25. android.os.Handler.dispatchMessage(Handler.java:95)
    26. android.os.Looper.loop(Looper.java:135)
    27. android.app.ActivityThread.main(ActivityThread.java:5290)
    27 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
    2 frames