Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Unable to Save Contact using Xamarin.Mobile Component in Xamarin.Android

SrimanSriman INMember ✭✭

I am using this Xamarin.Mobile component in Xamarin.Android project. After a lot of googling and going through their samples, i found only the way to retrieve the contacts from phone to my app.

Below is my code:

    AddressBook book = new AddressBook(context)
                PreferContactAggregation = true

    Phone ph = new Phone(){
    Type = PhoneType.Mobile,
    Number = "9952429044"

   Contact ct = new Contact()
        DisplayName = "Sai Ram",
        FirstName = "Om",
        MiddleName = "Sai",
        LastName = "Ram",
        Phones = new List<Phone>(){ph}

I need to save the Contact object to the phone's addressbook. I can't find any methods like book.Save(contact) in Xamarin.Contacts.


Sign In or Register to comment.