I need to get items from the sms database for a listing of the most recent messages. Currently, I "get" all messages and loop over them, only showing the first one for each person.
Uri smsUri = Uri.parse("content://sms/");
Cursor smsCursor= managedQuery(smsUri, null,null, null,null);
Is there a way to form the sql statement, so that it only gives me distinct items for a specific column?