Content: // request sms / inbox

I am using Android 1.6. I would like to request "content: // sms / inbox". How to implement it?

+2


a source to share


2 answers


Part of the SDK or not, I see no way to access the SMS data other than using content://sms/inbox

String folder = "content://sms/inbox"

-or- "content://sms/sent"

Uri mSmsQueryUri = Uri.parse(folder);
String columns[] = new String[] {"person", "address", "body", "date","status" 
String sortOrder = "date ASC"; 
Cursor c = _context.getContentResolver().query(mSmsQueryUri, columns, where, null, sortOrder);

      



This will give you a Cursor to access what you need.

Take a look at gTalkSMS . The file for searching SMS database queries is SmsMmsManager .

+5


a source


It is not part of the Android SDK. Don't use it.



+2


a source







All Articles