views:

20

answers:

0

I was able to use ACTION_PICK with People.CONTENT_URI with the following part of code

    Uri myPerson = People.CONTENT_URI;
    Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,myPerson);
    startActivityForResult(contactPickerIntent, CONTACT_ACTIVITY_CODE);

with this i was able to launch the native contact book and on selecting a contact it returned th _ID of that contact. Now what i want is to display the next screen of contact book--the page specific to that selected contact. i tried with the following code. but did not work

    Uri myPerson = ContentUris.withAppendedId(People.CONTENT_URI, 23);
    Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,myPerson);
    startActivityForResult(contactPickerIntent, CONTACT_ACTIVITY_CODE);

Here if i change Intent.ACTION_PICK to ACTION_VIEW i am able to view the reqd screen. but i want that screen with ability to return my selection(which will be a phone number or email etc)

please reply if any one have a solution or suggestions to this. Thanks