if((noValidate.getText().toString().length()>0) && (nameValidate.getText().toString().length()>0) &&
(conpassValidate.getText().toString() == passValidate.getText().toString()) && (email.matches(emailPattern))
&&(passValidate.getText().toString().length()>0))
{
Toast.makeText(this, "Your Information are saved succesfully ", Toast.LENGTH_SHORT).show();
Intent getStarted = new Intent(getApplicationContext(), FourthActivity.class);
startActivity(getStarted);
}
else
{
Toast.makeText(this, "Field Requiered",Toast.LENGTH_SHORT ).show();
}
}
here when i click on the sign in button it will validate and summerise the field. If any field is empty it will show that field required. if i entered data in all field means it always shows that field required. I don't know where was the problem.