Android ListView Adapter notifyDataSetInvalidated() vs notifyDataSetChanged()

AndroidAndroid ListviewAndroid Adapter

Android Problem Overview


What is the difference? The android documentation doesn't have a description for notifyDataSetInvalidated(). I was thinking maybe you call that function to notify all registered listeners, but use notifyDataSetChanged() to not notify them?

Android Solutions


Solution 1 - Android

Changed means the data set changed. Individual items updated, or items were added or removed. Invalidated means the data source is no longer available.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSpidyView Question on Stackoverflow
Solution 1 - AndroidadampView Answer on Stackoverflow