I am developing a mobile application in android using eclipse and phonegap. and my question is. How will i able to create a required field validator in my registration page? or what code should i input for required field validator. Many thanks guys.
I am developing a mobile application in android using eclipse and phonegap. and my
Share
If your registration page is a bunch of editTexts, you can just use
and then make sure that the mString has a certain length
or includes certain characteristics (like @ and .com for an email) For that you can just use regex (or Pattern in Android)
http://developer.android.com/reference/java/util/regex/Pattern.html