Monerah
Monerah

Reputation: 215

Refresh ArrayList Android application

can anyone tell me how can I use notifyDataSetChanged(); function when I want to refresh my arrylist in a activity when myadapter extends baseAdapter !!!

thanks a lot ...

Upvotes: 1

Views: 4375

Answers (2)

Sandip Armal Patil
Sandip Armal Patil

Reputation: 5895

You need to add

lviewAdapter.notifyDataSetChanged();  

Here you can find details.

Check this

Upvotes: 0

MAC
MAC

Reputation: 15847

when ever data of your array is changed you can call adapter.notifyDataSetChanged(); will refresh the data of your listview.

Upvotes: 2

Related Questions