連絡先の連絡先イメージがビットマップとして必要です。
私はこのコードを見つけました:
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;
これはかなりうまく機能しますが、関数 openContactPhotoInputStream(cr, my_contact_Uri, true) は API 14 以降でのみ使用できます。openContactPhotoInputStream(cr, my_contact_Uri) は以前のバージョンでも機能しますが、3 番目のパラメーターがないとサムネイルのみを取得するようです。
ドキュメントには次のように書かれています:
See Also
if instead of the thumbnail the high-res picture is preferred
しかし、このメモの背後にあるリンクは、現在のページに再びつながっているようです
画像の uri を取得できましたが、その後はどうでしょうか。