I am able to read message from the inbox from this:--
Uri uriSMSURI = Uri.parse("content://sms/inbox");
Cursor cur = getContentResolver().query(uriSMSURI, null, null, null, null);
i access date from this:-
date = cur.getString(cur.getColumnIndexOrThrow("date"));
But now problem is that it gives current time not Message Time from inbox. Sorry for Bad editing & any idea will be appreciated. Thanks in Advance!
Use this code:
In Sms tables, Dates are stored as INTEGER in milliseconds. so, use
millis = cur.getLong(cur.getColumnIndexOrThrow("date"))
on Cursor.Then, use
DateFormat.format("EEEE, MMMM dd, yyyy h:mm:ss aa", new Date(millis))
to get a nice readable string.