To check if an email is valid, for example an email inserted in an edit text by the user, there is an easy way in android.
public final static boolean isValidEmail(String email) { if (email == null) { return false; } else { return android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches(); } }
Through the method above you can easily validate an email.
Image may be NSFW.
Clik here to view.
L'articolo Android: email validation sembra essere il primo su -Bottyland-.
Image may be NSFW.Clik here to view.
