Sunday, October 2, 2011

[android-developers] Re: Simple database form example

You're on the right track there.

Just handle a click on a row in the ListView and launch either a dialog or another activity passing it the _id of the row you want to modify.

If you want dialog or activity to be reusable, just create the view programatically based on the columns in the database. If you don't need it reusable, just make a layout that matches the columns.

Grab the record via the _id, populate the views and update the database with the user changes.

Steven
Studio LFP
http://www.studio-lfp.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment