I am trying to get email ids of uses contacts. For that I am using Cursor Loader. There is one problem I am getting duplicate email ids also. How to remove email duplicacy. Shou
You can put setDistinct in your content provider.
@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { ... final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setDistinct(true);