My application loads/saves contacts, but I am having some confusion
regarding the difference between "unsynched" contacts and those
associate with a Google account.

In the emulator when I create a contact manually the "account" it uses
is "Phone-only (unsynched)". When I read the contacts via
ContactsContract.Contacts.CONTENT_URI, I can see the contact I made.
However, when I try to write a contact, the only method I've seen
involves ContactsContract.RawContacts.CONTENT_URI, but this requires
an Account as such:

ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)
                .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,
account_type)
                .withValue(ContactsContract.RawContacts.ACCOUNT_NAME,
account_name)
                .build()

If I create a contact in this way, it "works" I can not see it in the
native Android Contact application. How can I create a contact that is
unsynched? If I do a similar operation, but using
ContactsContract.Contacts.CONTENT_URI and no Account, I get "Aggregate
contacts are created automatically" error.

Thanks

-- 
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