I have an application where user needs to input data via edittext and it cant be duplicate, so i create unique index. But how to make the comment if unique index is met? So user knows what is the error.
db.execSQL("CREATE UNIQUE INDEX DIFFERENT ON user(name, gender)");