I have this EditText definition:
<EditText
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:inputType="textEmailAddress"
android:id="@+id/EmailText"/>
Notice the EditText has the inputType defined with an email address specification. Does Android have anything built in to validate an email address input type, or does this all have to be done manually? It’s allowing me to enter invalid data, so I’m curious as to its purpose.
Thanks.
Here By giving input type Email you are setting the keyboard of email type means “@” and “.” keyword will display on key board.
the better solution is to compare the email by following function
if this function returns true then your email address is valid otherwise not