hi i have a question regarding updating contact,

1 . in my phone book there is some contact which refer to one contact
means
lookup key field contain the lookup values for other data is't
aggregation right?

2. When i am going to update contact the other contact which does not
have their own contact_id now the created new as new contact.

how can i update  contact to keep as android contact application
assign values like id to each contact.


On Oct 25, 4:54 pm, Goran Krstevski <[email protected]> wrote:
> 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

Reply via email to