我在获取联系人照片时反回的流总是空,调试时input在明显有头像照片时返回总是空是怎么回事?
//获取联系人照片ID
Long myphotoID=cursor.getLong(cursor.getColumnIndex(
ContactsContract.CommonDataKinds.Phone.PHOTO_ID));
if (myphotoID>0) {
Uri uri = ContentUris.withAppendedId( ContactsContract.Contacts.CONTENT_URI,(Long)myphotoID);
InputStream input = ContactsContract.Contacts.openContactPhotoInputStream( getActivity().getContentResolver() ,uri);