Android List view refresh Android List view refresh android android

Android List view refresh


You have to notify your ListView adapter that the data has changed.

listViewAdapater.notifyDataSetChanged();

If that for some reason doesn't work and there are some wierd situations where it seems like it wasn't notifying, you can just reassign your adapter via the constructor with the updated array.


I have no notifyDataSetChanged() method (Android 2.3).

The following worked for me:

getListView().invalidate();

In my case I have changed the whole adapter and it still didn't refresh, so for me the method described above is the only working solution.