I'm trying to add a new contact based on adding a record: 
http://developer.android.com/guide/topics/providers/content-providers.html

My code is:
           ContentValues values = new ContentValues();
            // Add Abraham Lincoln to contacts and make him a favorite.
 
            values.Put(Android.Provider.Contacts.PeopleColumns.Name, "Abraham 
Lincoln");
            // 1 = the new contact is added to favorites
            // 0 = the new contact is not added to favorites
            values.Put(Android.Provider.Contacts.PeopleColumns.Starred, 1);
 
            var uri = cr.Insert(ContactsContract.Contacts.ContentUri, values);
Unfortunately, I'm getting the following error on the insert:
Unhandled Exception:

Java.Lang.UnsupportedOperationException: Aggregate contacts are created 
automatically

Any help on resolving this exception is appreciated.

Wally
                                          
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to