This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes Is there any way to update the arrays in an adapter for listview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Is there any way to update the arrays in an adapter for listview" Watch "Is there any way to update the arrays in an adapter for listview" New topic
Author

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

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
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

Joined: Jan 08, 2009
Posts: 1473
    
    6

Try calling notifyDataSetChanged() on the adapter.


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