Quantcast
Channel: -Bottyland-
Viewing all articles
Browse latest Browse all 61

Android: email validation

$
0
0

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.

Share

L'articolo Android: email validation sembra essere il primo su -Bottyland-.


Viewing all articles
Browse latest Browse all 61

Trending Articles