ContentResolver cr = getContentResolver();
Cursor cursor = cr.query(Uri.parse("content://sms/inbox"),null,null,null,null);
int nameidx = cursor.getColumnIndex("address");
int dateidx = cursor.getColumnIndex("date");
int bodyidx = cursor.getColumnIndex("body");
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd a h:mm");
for(int i=0; i<50; i++ ) {
cursor.moveToNext();
//이름
name = cursor.getString(nameidx);
// 날짜
date = cursor.getLong(dateidx);
sdate = formatter.format(new Date(date));
// 내용
body = cursor.getString(bodyidx);
mi = new MyItem(name, body, sdate);
arItem.add(mi);
}
위 코드는 문자 DB 접근해서 메시지정보를 빼오는 부분입니다
배가x에서는 잘되는데 갤럭신s, 옵티머스2x 등등.. 안되는 폰이 있어서 질문드립니다.
핸드폰마다 문자DB 접근 방식이 틀린건가여?
아니면 접근하지 못하도록 막아논걸까여..
부탁드립니다..




결과를 이미 찾으셨을꺼 같지만..
각 기기마다 uristring이 조금 틀리더군요..
갤s같은 경우 "content://com.sec.mms.provider/message" 이렇게 넣으시면은 columnindex와 columnname을 가져오실수 있습니다..
요까지만 압니다 ㅋㅋ