I wrote a SMS app, showing the contact photos of my contacts in the overview.
Getting "normal" photos is no problem:
Uri cu = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
final InputStream input = Contacts.openContactPhotoInputStream(getContext().getContentResolver(), cu);
return BitmapFactory.decodeStream(input);
The problem is: contact photos provided by e.g. facebook are not there, how can I also get these "external" photos?