if (s.equals("") || s1.equals("") || s2.equals("")
|| s3.equals("") || s4.equals("") || s5.equals("")) {
Toast.makeText(RegActivity.this, "enter the All values",
120).show();
} else if (s1.length() != 6) {
Toast.makeText(RegActivity.this,
"Password Should Contain 6 char's", 120).show();
}
else if (!(s1.equals(s2))) {
Toast.makeText(RegActivity.this, "password's unmatched",
120).show();
}
else if (s3.length() != 10) {
Toast.makeText(RegActivity.this,
"phone no should Contains 10 digits", 120).show();
} else if (!(s4.contains("@") && (s4.contains(".com")))) {
Toast.makeText(RegActivity.this,
"Email should contains @,.com", 120).show();
} else {
db.insertvalues(s, s1, s2, s3, s4, s5);
Toast.makeText(RegActivity.this,
"you are successfully Registrered", 120).show();
}
No comments:
Post a Comment