views:

257

answers:

1

What is the consensus on parsing the Uri of sms messages for use with a cursor. There has to be a cross phone compatible way of getting access to sms messages.

There's nothing in the sdk for something like this?

What about this as a Uri string: ("vnd.android-dir/mms-sms");

+1  A: 

Check out the source for SMSPopup

Cursor c = getContentResolver().query(Uri.parse("content://sms"),
               projection, null, null, null);
BrennaSoft
But this apparently is not part of the SDK and does not respond consistently on all phones. It works fine on the Droid Incredible, but I am having trouble with it on the Moto Droid.
Noah Seidman
I have a Droid and SMSPopup definitely works so post the non-working code.
BrennaSoft
I'm using the Uri to delete a text message at a particular thread location (Uri.parse("content://sms/conversations" + threadId), which doesn't work on the Droid, but works on the Incredible just fine. When I code tonight I will change it to sms-mms to see if it works. I've heard sms-mms is more cross phone compatible.
Noah Seidman