휴대폰 SMS 목록 가져오기 코드.
---------------- public int readSMSMessage() { Uri allMessage = Uri.parse("content://sms"); ContentResolver cr = getContentResolver(); Cursor c = cr.query(allMessage, new String[] { "_id", "thread_id", "address", "person", "date", "body" }, null, null, "date DESC"); String string = ""; int count = 0; while (c.moveToNext()) { long messageId = c.getLong(0); long threadId = c.getLong(1); String add..
Android.. Story
2016. 4. 14. 11:02