1
How do I make this edittext only valid for an email? It 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();