Contacts.People.AddToMyContactsGroup(ContentResolver, Int64) Method

Definition

Caution

deprecated

Adds a person to the My Contacts group.

[Android.Runtime.Register("addToMyContactsGroup", "(Landroid/content/ContentResolver;J)Landroid/net/Uri;", "")]
[System.Obsolete("deprecated")]
public static Android.Net.Uri? AddToMyContactsGroup (Android.Content.ContentResolver? resolver, long personId);
[<Android.Runtime.Register("addToMyContactsGroup", "(Landroid/content/ContentResolver;J)Landroid/net/Uri;", "")>]
[<System.Obsolete("deprecated")>]
static member AddToMyContactsGroup : Android.Content.ContentResolver * int64 -> Android.Net.Uri

Parameters

resolver
ContentResolver

the resolver to use

personId
Int64

the person to add to the group

Returns

Uri

the URI of the group membership row

Attributes

Exceptions

if the My Contacts group can't be found

Remarks

Adds a person to the My Contacts group.

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.People.addToMyContactsGroup(android.content.ContentResolver, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to