views:

75

answers:

1

Hi,

I've a listView Activity where user could open a dialog to display more information about a line of the list.

On the Dialog user could modify a line. So my purpose is to refresh listView when User modify it by the Dialog.

The problem is that I couldn't use myArrayAdapter.notifyDataSetChanges() so How I could do that ?

A: 

Presumably you are using a database to populate the list, or perhaps some kind of array. Why don't you simply create a function that fills the list. Every other method that is called that might change the data in the list would simply modify the content in the database for instance (update, add) and then call the list filler method. This puts all the code for filling the list in one place that can be easily called whenever you need it.

Adriaan
in fact, I use Server call to populate the list.
Nanis