I'm using content://mms-sms/conversations to get a list of messaging threads. For some reason, it omits threads which exclusively consist of mms messages. (It does list threads which are mixed with mms and sms.) NB - I'm intentionally not using the new level 19 api. Here's my code snip:
Cursor cursor = getContentResolver().query
(Uri.parse ("content://mms-sms/conversations"),
null, null, null, "date DESC");
while (cursor.moveToNext())
{
long key = cursor.getLong (cursor.getColumnIndex ("_id"));
long threadId = cursor.getLong (cursor.getColumnIndex ("thread_id"));
String address = cursor.getString (cursor.getColumnIndex ("address")); // phone #
long date = cursor.getLong (cursor.getColumnIndex ("date"));
String body = cursor.getString (cursor.getColumnIndex ("body"));
String q = String.format ("%04d %04d %10s %s %s",
key, threadId, address,
formatDate(date),
body == null ? "" : body.substring (0,Math.min(10,body.length()-1)));
logD (q); // simple wrapper for Log.d()
}
cursor.close();
Has anyone else observed this? Any work around? Thanks.