I just want to have a validation for avoiding duplication of email address. Someone please help me with this kind of validation? This is a simple registration with some validations. So, my target here is to avoid duplication of inserted data for email address.
Here is my updated work:
Here is my Sign-up code. The error is in my boolean isEmailExist which the (c) is cannot resolve symbol.
My goal is when there is an existing email address it will not be able to register again with the same email add.
In my database helper I check if the email is already exist but I have a hard time doing the coding in my Sign-up Activity
boolean isEmailExist = helper.insertContact(c);
if(isEmailExist)
{
// notify user
//if the email add is already exist
}