I need the contact images of my contacts as bitmaps.
I found this code:
Uri my_contact_Uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, String.valueOf(id));
InputStream photo_stream = ContactsContract.Contacts.openContactPhotoInputStream(cr, my_contact_Uri, true);
BufferedInputStream buf = new BufferedInputStream(photo_stream);
Bitmap my_btmp = BitmapFactory.decodeStream(buf);
buf.close();
return my_btmp;
which works pretty well, but the function openContactPhotoInputStream(cr, my_contact_Uri, true) is only available on API 14+. openContactPhotoInputStream(cr, my_contact_Uri) works also on earlier versions, but without the 3rd parameter it seems to retrieve only the thumbnail.
in the documentation it says:
See Also
if instead of the thumbnail the high-res picture is preferred
but the link behind this note seems to lead on the current page again
I could get the uri of the image, but what then?