Wednesday, March 31, 2010

Updating List in Android

If we need to update list in android, then according to adapter, we need to modify the code.


For ListAdapter, after updating the arrayList, we need to call notifyDataSetChanged().
For CursorAdapter, after updating the cursor, we need to call requery().

No comments:

Post a Comment

Androidians