On Mon, Dec 6, 2010 at 7:43 PM, Bret Foreman <[email protected]> wrote: > The question that comes up is what event should cause the form > activity to move data from the EditText widget into the database? In > the case of the checkboxes, it's pretty simple - I just update the DB > when the onClickListener is called. A checkbox's state always changes > when it's clicked. But with EditText, the user might click on it and > then not change anything. So what event should I use to signal that I > need to store the edited text into the DB?
When the user clicks the Save button or option menu choice. For complex forms on small touchscreen devices, do not assume that the user wants a change until they explicitly say they want it. It is too easy to graze a widget while attempting to tap other things, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

