question: private void filterAlreadySynced ( ContactSyncEntry syncEntry ) { final String selection = String . format ( Locale . US , "%s IN (%s)" , DatabaseColumns . NUMBER , syncEntry . getJoinedNumbersCsv ( ) ) ; final Cursor cursor = DBInterface . query ( false , TableUploadedContacts . NAME , null , selection , null , null , null , null , null ) ; if ( cursor != null ) { while ( cursor . moveToNext ( ) ) { syncEntry . removeNumber ( cursor . getString ( cursor . getColumnIndex ( DatabaseColumns . NUMBER ) ) ) ; } cursor . close ( ) ; } }
target:  Checks which of the entries have already been synced before and removes them if they have already been synced before