julius wrote:
> 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.

Try using CursorAdapter instead. When you modify the database, call
refresh() on the Cursor, and everything else will update automatically.

> Without trying to be difficult, is there a way I could maintain my
> existing structure?

Sorry, but I have no idea what your "existing structure" is. Your
original post provided insufficient information to comment. However, in
general, either:

-- use ArrayAdapter and modify it through add(), etc.
-- use CursorAdapter and refresh it via requery() on the Cursor
-- write your own Adapter as a subclass of BaseAdapter

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 14-18 June 2010: http://bignerdranch.com

-- 
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

Reply via email to