I encountered a bug on ICS . Using a ListView and changing the adapter over time, I don’t see any change to the content of the listView until I scroll down and then return to the top.
I used these commands to notify the changes to the adapter :
adap.notifyDataSetChanged();
adap.notifyDataSetInvalidated();//added just to see if it solved... but it didn't resolve
In Gingerbread the code works perfectly.
Also create a new adapter each time when you populate the ListView like this:
And as far as why
notifyDataSetChanged()does not work.Please go through this. Even I faced similar issue.notifyDataSetChanged example