I want to return a cursor only with distinct values of a column. The column \'Groups\' has more items but with only 2 values: 1,2,1,1,1,2,2,2,1
String[] FRO
you can use distinct argument while making query like this:
public Cursor query (boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Follow this doc for more clearity.