Hi, I have a question about a CheckBox of Acceptance of Terms of Use. I have 2 text boxes (EditText) and a CheckBox. What I need to achieve is that if the 2 text boxes are empty and the checkbox is not "checked", it will return an error message.
The point is that I already achieve this, but if I complete the text fields and the checkbox is still not marked the process is done something that should not happen since I must first accept the Terms of Use
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(saldo.getText.toString().equals("") && monto.getText.toString().equals("") && !checkBox.isChecked()) {
//Mostrar Error
} else {
// Hacer operacion
}
});