In android apps we generally use email-id’s to make user login, or to perform any other operations required for users.So we need to validate the email address before we accept it thought we cannot confirm the validity of the email address but we can confirm the pattern of the email address.

 

We can check with the pattern available and can let the user know instantly to rectify the email address according to the prescribed pattern.

 

 

According to the above pattern we may get email address validated according to this format  –> abc@email.com

 

Initialize pattern and matcher

Using a Boolean return method you can validate email address.

 

 

Show Buttons
Hide Buttons
Read previous post:
Android Tutorial on ButterKnife || butterknife android

Close