How do you validate the format and values of EditTextPreference entered in Android 2.1?

Posted by Zap on Stack Overflow See other posts from Stack Overflow or by Zap
Published on 2010-03-29T00:09:03Z Indexed on 2010/03/29 0:13 UTC
Read the original article Hit count: 965

Does anyone have sample code to validate user entered text in preferences? For example, I have a EditTextPreference for user to enter an email address. I'd like to validate the format of email address entered and pop up an alert dialog if the format isn't correct. Anyone have any sample code for this? Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about preferences