Answers for "how to check if an email address is valid android studio"

3

android is valid email

import android.util.Patterns

val email: String = "[email protected]"

private fun String.isValidEmail(): Boolean {
	return Patterns.EMAIL_ADDRESS.matcher(this).matches()
}

email.isValidEmail()
Posted by: Guest on May-12-2021
0

android studio check if email is valid java

android.util.Patterns.EMAIL_ADDRESS.matcher(email.getText().toString()).matches();

It returns true if it is a valid email address and false if not
Posted by: Guest on October-13-2021

Code answers related to "how to check if an email address is valid android studio"

Browse Popular Code Answers by Language