Q:

Required Field Validator in Eclipse

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.

A:

If your registration page is a bunch of editTexts, you can just use 
String mString = editText.getText() 

and then make sure that the mString has a certain length 
mString.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

