Skip to main content

Posts

Showing posts with the label Stored

How to Read Stored SMS in Android ?

// Read stored sms         strUri = "content://sms/sent";         Uri urisms = Uri.parse(strUri);         c = this.getContentResolver().query(urisms, null, null, null, null);         while (c.moveToNext()) {                 // Addr at column 2                 String addr = c.getString(2);                 phoneNbr = addr;                 // Msg body at column 11                 msg = c.getString(11);         }