-1

In my chat application I have one base adapter which is not refresh at a time
so i want to refresh my base adapter in post button button click
when i am click on post button same time list view refreshed and also
refreshed my base adapter and display send message at a time.

Akhil0181
  • 14
  • 8

2 Answers2

1

You can do this by calling notifyDataSetChanged method. Find more about this at developers forum FYI pasting the link below

Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.

public void notifyDataSetChanged ()

Triode
  • 11,309
  • 2
  • 38
  • 48
0

Get the new data in your data structure like arraylist and then to update the view like listview call simply

**call youradapter.notifyDataSetChanged();**
Androider
  • 3,833
  • 2
  • 14
  • 24