Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Mark contact from android ContactsContract list

I display android contact picker on some button click with folowing code:
private void OnAddContactClick(object sender, EventArgs e)
var contactPickerIntent = new Intent(Intent.ActionPick, ContactsContract.Contacts.ContentUri);
StartActivityForResult(contactPickerIntent, 1001);

protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
    if (resultCode != Result.Ok || requestCode != 1001)

    var cursor = ContentResolver.Query(data.Data, null, null, null, null);
    if (!cursor.MoveToFirst())

    var id = cursor.GetString(cursor.GetColumnIndex(ContactsContract.ContactsColumns.LookupKey));

Is there a way to put checkmark or some other icon to the item that user taped? So i want to send info to contact list that something is done with one of items and mark it somehow.

Sign In or Register to comment.