Without having it tried out, I'm surprised that the second solution works at all? AFAIK, PICK_ACTION works on the mime-type vnd.android.cursor.dir/... while adding the specific contact id changes this to the mime-type vnd.android.cursor.item/... on which one should probably use the GET_CONTENT_ACTION?
Regardless of my irritation, your feature seems like a useful one that does not seem to be covered by the way the system works currently... Maybe someone should invent a new intent for doing exactly what you want (PICK_WITH_PRESELECTION_ACTION)... Peli (PS: If Google doesn't do it, we should do it in OpenIntents.. http://www.openintents.org :-) ) On Apr 1, 5:17 pm, elDoudou <[EMAIL PROTECTED]> wrote: > I would like to know whether this is possible to open the contacts > picker activity and have a specific contact selected? I use the > following snippet of code: > > startSubActivity(new Intent(Intent.PICK_ACTION, > Contacts.People.CONTENT_URI), 0); > > in order to open the activity, and it works perfectly. I tried: > > ContentURI peopleUri = Contacts.People.CONTENT_URI; > peopleUri.addId(3); > startSubActivity(new Intent(Intent.PICK_ACTION, peopleUri), 0); > > (3 being a real contact id) but this does not change the default > selected contact. > > Your help is appreciated (this is the kind of detail that makes the OS > user-friendly). > Regards, Edouard --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

