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().

Comments

Popular posts from this blog

AlarmManager and Notification in Android

Swipe Action and ViewFlipper in Android

Open Gallery and get the selected image in appplication