Re: [mono-android] Contact woes

2012-07-26 Thread Eric Maupin
Hi Stephan, On Android, there are two types of contact ID: the individual contact ID, and the lookup key. Android gives you the option of looking at aggregated contacts (that is, merged contact details from multiple accounts), or individual contacts. The ID that you are using in your original exam

Re: [mono-android] Contact woes

2012-07-24 Thread Stephan Steiner
Yup it does - found that out during debugging (the app would initially just crash). In fact I managed to reverse engineer the issue - I just went searching for a given email over the entire address book, then searched for it using the traditional approach, and compared ids. While data.Data.LastPat

Re: [mono-android] Contact woes

2012-07-23 Thread Jonathan Pryor
On Jul 23, 2012, at 1:52 PM, Stephan Steiner wrote: > Here's my problem - in OnActivityResult > >var book = new AddressBook(this); >book.PreferContactAggregation = true; > >Contact myContact = book.Load(data.Data.LastPathSegment); > > myContact rem

[mono-android] Contact woes

2012-07-23 Thread Stephan Steiner
I've seen the previous thread - and not much else on the topic. So it seems extracting information from contacts is still a pain. Then I discovered Xamarin.Mobile and figured it would be the solution to all my problems. So I wrote some code that is basically the same as https://gist.github.com/14