How to make this edittext only valid for an email? That contains for example [email protected] that contains at least the "@"?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cadastro);
email = (EditText) findViewById(R.id.Cemail);
btnfincad.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mEmail = email.getText().toString();