Hello everybody.
I would like to pick up a photo of the contact and display it in my
application in ImageView().

The problem seems to be in the description of that Intent.
I am writing the following:
[code]
        Intent i = new Intent (Intent.ACTION_GET_CONTENT);
        i.addCategory(Intent.CATEGORY_OPENABLE);
        // 1 -
i.setType(ContactsContract.CommonDataKinds.Photo.PHOTO); //- > Force
close
        // 2 - i.setType("*/*");
        startActivityForResult(i,PICK_IMAGE_FROM_CONTACT);
[/code]


If I set the type of intent as
"ContactsContract.CommonDataKinds.Photo.PHOTO" the application force
closes.
If I set the type of intent as "*/*" the application prompt me to pick
a picture from Gallery and some other application but not from the
Contacts.

How do I have to express this Intent fro picking a photo from a
specific contact?

I have successfully retrieved information from the contacts(except
photo) and pick a photo from Gallery.
I appreciate any suggestions.

Regards,
kalgik

-- 
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

Reply via email to