When i insert one record then duplicate entry is generated that means total two same entries are display. My query for select statement is following: How to make distinct record???
Cursor cur = db.query("timer", null, null, null, null, null, null);
When i insert one record then duplicate entry is generated that means total two same entries are display. My query for select statement is following: How to make distinct record???
Cursor cur = db.query("timer", null, null, null, null, null, null);
To make a distinct selection define a boolean Variable like :
private boolean Distinct = true;
then change your query to :
c = db.query(Distinct,DATABASE_TABLE,cols,null,null, null, null,
null,null);