I am using this code below to grab MMS. I read in other places that RCS was held here on my samsung galaxy phone. However, My code is not grabbing the RCS messages. It only appears to be grabbing the MMS as far as I can tell.
Uri uri = Telephony.Mms.CONTENT_URI;
String[] projection = new String[]{
Telephony.Mms.DATE,
Telephony.Mms._ID
};
String selection = Telephony.Mms.DATE + " BETWEEN ? AND ?";
String[] selectionArgs = new String[]{
String.valueOf(startTime.getTime() / 1000),
String.valueOf(endTime.getTime() / 1000)
};
String sortBy = Telephony.Mms.DATE + " ASC";
Cursor cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, sortBy);
I am unsure what else to try. I don't usually post in here, but it just doesn't seem to be retrieving them at all so I am at a loss. There doesn't seem to be an RCS content provider for my phone, and I see other people on stack overflow saying they are stored in the mms content provider.