I have created a view in which i have 1 list view and 2 buttons. The first button is for deleting the selected list view and the 2nd button is for deleting the deleted the entire data from the table. I want that if I delete the entire data from the table the list view should get refreshed an it should get reloaded. Please help me out in achieving this.Thanks in advance.
Share
use should use notifyDataSetChanged () method to refresh your listview…
Call notifyDataSetChanged() on your Adapter
see this link……..
http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged%28%29