• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any way to update the arrays in an adapter for listview

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi....
i want to update the arrays iam using in adapter class for generating listview when new data is entered.

please help.


as when i load the listview in android it gives output but when i add an element den the listview is not updated
please suggest some idea for the problem mentioned
 
Swastik Dey
Rancher
Posts: 1723
8
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling notifyDataSetChanged() on the adapter.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!