안녕하세요. 해결방법을 찾기가 어려워 이렇게 질문 올립니다.
현재 2.1버전에서 작업중입니다.
contact 쪽의 정보를 갖고와서 화면에 뿌려주고 싶은데 이름이나 전화번호 이메일등은 잘 받아오는데 사진에서
null 값만 가져옵니다. 조언좀 부탁드립니다.ㅠ.ㅠ
 
 public Bitmap PhotoOfPerson(String id) {                  // id = person_id
    Bitmap orgImage = null;
    Cursor cursor = null;
   
    cursor = this.cr.query(ContactsContract.Data.CONTENT_URI, null,
     ContactsContract.CommonDataKinds.Photo.RAW_CONTACT_ID +" = ?", new String[]{id}, null);

    while (cursor.moveToNext()) {
    int index = cursor.getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Photo.PHOTO);
    byte[] photoImage = cursor.getBlob(index);                   // 이부분에서 byte 값으로  null 값이 찍힙니다.
    orgImage = BitmapFactory.decodeByteArray(photoImage, 0, photoImage.length, options);    
   } 
   cursor.close();
   return(orgImage);
  }