You are on page 1of 1

public void registro (View v) {

String s1 = e1.getText().toString();
String s2 = e2.getText().toString();
String s3 = e3.getText().toString();

if (s1.equals("") || s2.equals("") || s3.equals(""))


{
alert("Campo Obrigat�rio!");
}
else
{
if(s2.equals(s3))
{
Boolean insert = db.insert(s1,s2);
if (insert==true)
{alert("Registro Efetuado com Sucesso!");
}
else {alert("Registro N�o efetuado!");}
}
else {
alert("Campos preenchidos!");
}

}
}

You might also like