Thanks, now it works with this code:
...
ArrayList<ContentProviderOperation> ops = new
ArrayList<ContentProviderOperation>();
ops.add(ContentProviderOperation.newUpdate(ContactsContract.AggregationExce
ptions.CONTENT_URI)
.withValue(AggregationExceptions.TYPE,
AggregationExceptions.TYPE_KEEP_TOGETHER)
.withValue(AggregationExceptions.RAW_CONTACT_ID1,
masterContactId)
.withValue(AggregationExceptions.RAW_CONTACT_ID2,
contactId).build());
getApplicationContext().getContentResolver().applyBatch(ContactsContract.AU
THORITY,
ops);
...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en