Quantcast
Viewing latest article 17
Browse Latest Browse All 61

Android: email validation

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.
Share

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

Image may be NSFW.
Clik here to view.

Viewing latest article 17
Browse Latest Browse All 61

Trending Articles