1
接触我尝试使用下面的代码来从我接触到更大尺寸的画面:大图版本针对Android
Uri my_contact_Uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, Long.parseLong(contactId));
InputStream photo_stream = ContactsContract.Contacts.openContactPhotoInputStream(getContentResolver(), my_contact_Uri);
if(photo_stream != null)
{
BufferedInputStream buf =new BufferedInputStream(photo_stream);
Bitmap my_btmp = BitmapFactory.decodeStream(buf);
profile.setImageBitmap(my_btmp);
}
else
{
profile.setImageResource(R.drawable.contactpic);
}
我有一个imageview
与match_parent
(宽度和高度)。
来自联系人的所有照片都模糊不清。我确定它正在缩略图。我如何获得大图片?
谢谢!有效.. – TheDevMan