jQuery in Action, 2nd edition
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply 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: 204
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
Ranch Hand

Joined: Jan 08, 2009
Posts: 1196

Try calling notifyDataSetChanged() on the adapter.


Swastik
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is there any way to update the arrays in an adapter for listview
 
Similar Threads
Update the List View at run time
how to remove ListView Activity Lines in Android
Help me java.lang.IllegalStateException
Refreshing jQuery Mobile listviews
ListView getView() problem