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 접근 방식이 틀린건가여?
아니면 접근하지 못하도록 막아논걸까여..
부탁드립니다..




저도 열심히 검색중인데 삼성에서 막아놓았고 안되는 폰도 몇몇 있는거같습니다.
막아놓기는 했지만 카드플래너같은 프로그램에서는 읽히고 있는것을보아 방법이 없지는 않은것같습니다.....
혹시 아시게 되시면 저에게도 ......