Hi,

I am adding a new contact programatically in this way:

final Uri personUri = context.getContentResolver().insert
(Contacts.People.CONTENT_URI, peopleValues);
final long contactId = ContentUris.parseId(personUri);
Contacts.People.addToMyContactsGroup(context.getContentResolver(),
contactId);

The last call to addToMyContactsGroup is required to make the contact
appear in "My Contacts" group in the address book on the phone. This
works OK on G1 (without this call I could see new contact only with
menu->Display group=All Contacts), but when the same code runs on Htc
Hero, the new contact is shown with "Google" label and only visible
when I check "Google" contact source in menu->View. This happens with
or without calling addToMyContactsGroup.

How can I make the contact be shown as a normal phone contact?
-- 
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