views:

92

answers:

0

I'm able to add a Contact with ContactsContract to one of the user's accounts (a difficult feat in itself!), but I still haven't been able to add it to a group that will show up. I know that the user can go to their contact options and check a "Show All (Other) Contacts" box in their account, but not only is this is an extra step for the user that many of them don't know about, I tried it on an HTC EVO and I'm not sure that it's even possible with Sense.

So at minimum, I'm looking for a ContactsContract equivalent to addToMyContactsGroup. On a broader level, I'm looking for more detail on:

  • How to best go about adding the contact to a group, depending on the account they choose to add the contact to.
  • How to avoid stacking up multiple Raw Contacts for the same person in case the user presses my "Add to Contacts" button multiple times (all Raw Contacts are visible and separately editable in Android when you edit a contact).
  • Basically how to make adding a contact as user friendly as possible without using Intents.Insert

Thanks pros!