Apparently it's not possible to execute the query:

Cursor cur = this.getContentResolver().query(Uri.parse("content://sms/
conversations"), null, null, null, null);

I tried all sms related permissions, but always got an exception.

However, it's possible to execute the following instead:

Cursor cur = this.getContentResolver().query(Uri.parse("content://
sms"), null, null, null, null);

This returns all sms messages (incoming, outgoing...) and the messages
are returned sorted by date. You need to set only the READ_SMS
permission in the manifest file. This query serves my purpose and I
strongly believe it would serve any purpose which requires access to
the list of conversations.

I googled around a bit to understand what "content://sms/
conversations" is used for. Apparently people have used it for
deleting a conversation and loading a conversation. I'm not aware of
any other usage of it.

-Ali

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to