Hi, Thank you for the quick reply.
The ArrayAdapter gets information from a SQLite DB and I'm currently adding a record to the DB and then "refreshing" the ArrayAdapter. I'm not sure whether this is the right way to go about it though. Calling add(), insert() or remove() doesn't quite fit into how I'm doing it; but I could change all that perhaps if it it would be better. Without trying to be difficult, is there a way I could maintain my existing structure? Thanks again. On Mar 18, 10:51 am, Mark Murphy <[email protected]> wrote: > julius wrote: > > I have an ArrayAdapter which is used to show a list in a ListActivity. > > This list is updated from time to time and when this happens I call > > notifyDataSetChanged() on the ArrayAdapter. > > You don't need to do that. Just call add(), insert(), or remove() on the > ArrayAdapter itself to make changes, and everything should work just fine. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

