I have a form with 7 or 8 EditText areas and a couple of check boxes.
All the text and the checkbox state comes from an SQLite database
where one instance of the form matches one row in the DB. I also have
a flag column in the DB to mark a row as "dirty" so I know it's been
edited. This is important because the user can sync with an online
database later.

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?

There's something called a TextWatcher that can be added with
EditText.addTextChangedListener but it's not clear how I would use
that to do what I want.

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