Skip to content

Instantly share code, notes, and snippets.

@devrath
Created August 26, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devrath/f721f196c6923450eb75 to your computer and use it in GitHub Desktop.
Save devrath/f721f196c6923450eb75 to your computer and use it in GitHub Desktop.
Email and WebUrl Validation
if (!android.util.Patterns.EMAIL_ADDRESS.matcher(emailId).matches()){
inputemail.setError(inputemail.getResources().getString(R.string.mail_Id_invalid));
valid = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment