I've finally come up with this which sort of works. It uses the
message uri (e.g. "content://sms/123") to work out the thread_id.

Cursor cursor = getContentResolver().query(msgUri, new String[]
{ "thread_id" }, null, null, null);
long threadId = cursor.getLong(0);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("content://
mms-sms/conversations/" + threadId));
int flags = Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP;
intent.setFlags(flags);
startActivity(intent);

It seems odd to me that there is no way to bring up an individual
message (only a whole thread).

Is there a better way to do all this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to