If it is a Google account, you also need to add the contact to a visible
group, e.g. My Contacts.

If it is your own type of account, you need to set UNGROUPED_VISIBLE=1 in
the corresponding ContactsContract.Settings row.


On Wed, Apr 28, 2010 at 3:46 AM, Sergey <[email protected]> wrote:

> I create new contact with new API (ContentProviderOperation)  see
> samples from SDK:
>
>  ArrayList<ContentProviderOperation> ops = new
> ArrayList<ContentProviderOperation>();
>
>
>
> ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)
>                .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,
> 1)
>                .withValue(ContactsContract.RawContacts.ACCOUNT_NAME,
> "Super")
>                .build());
> ...
>
> But this contact is UNVISIBLE.
>
> How I can create contact with IN_VISIBLE_GROUP = 1?
>
> Thanks,
> Sergey
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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