Hi! I had the same issue with my app. To solve it, instead of using the 'deprecated' Contacts.People on 2.1 devices, you should use ContactsContracts (which deals also with multiple user accounts). I did the following:
intent = new Intent (Intent.ACTION_PICK); intent.setType(ContactsContract.Contacts.CONTENT_TYPE); // this will show contacts & their primary numbers // If you want to allow a user selecting also a secondary phone number use this: intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); Hope it helps! YuviDroid On Tue, Jun 8, 2010 at 5:03 AM, frantz lohier <[email protected]> wrote: > Hi, > > I wrote an app that invokes the contact manager in the following way: > > Intent pickcontact = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); > startActivityForResult(pickcontact, CONTACTPICKED); > > I am experiencing 2 different behavior between HTC phones and the NexusOne, > all with firmware 2.1-update1. > > Thanks work properly on the NexusOne (i.e., my application is getting > access to all my contact along the primary phone number of that contact > list). On HTC phones however (incredible and the hero), the list of contact > I get represents some sort of index as opposed to the actual contact > name/phone number. > > Am I missing anything ? > > Thanks, > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

