This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
To refresh data in list view ,
following is the code you written for List view Data ,
setListAdapter(yourAdapter); here, in example yourAdapter can be ArrayList or any of List of Adapters .
now , when you want to refresh data in list call ,
yourAdapter.notifyDataSetChanged(); and you are done !
Natali Lapshina wrote:If you use SimpleCursorAdapter? then try
Cursor cursor = new .....;
Requery is now deprecated and should not be used. You can instead use a Loader and an observer inside this loader to tell the list view that the content has changed and must be reloaded. Take a look at this tutorial to get yourself started