I'm trying to get a count of unseen mms message which I've got a content observer triggering when the mms/inbox changes..
This is the cursor
Cursor cursor = localContentResolverMMS2.query(Uri.parse("content://mms/inbox"), null, NEW_INCOMING_MM_CONSTRAINT, null, null); and NEW_INCOMING_MM_CONSTRAINT is:
String NEW_INCOMING_MM_CONSTRAINT = "(" + Telephony.Mms.MESSAGE_BOX + "=" + TelephonyProviderConstants.Mms.MESSAGE_BOX_INBOX + " AND (" + TelephonyProviderConstants.Mms.MESSAGE_TYPE + "=" + 130 // MESSAGE_TYPE_NOTIFICATION_IND + " OR " + Telephony.Mms.MESSAGE_TYPE + "=" + 132 + "))"; //MESSAGE_TYPE_RETRIEVE_CONF It fires fine when I get a new message, but when I try view the message in a messenger app such as google messenger or textra the "seen" status doesn't seem to change. I'd expect it to change to "1" (seen) from "0" (unseen).
Am I querying something wrongly?
Related questions 4 Android SMS MMS outgoing count in 1.5 9 How to query the MMS Log in Android 79 How to Read MMS Data in Android? Related questions 4 Android SMS MMS outgoing count in 1.5 9 How to query the MMS Log in Android 79 How to Read MMS Data in Android? 17 Get number of unread sms 10 Detecting MMS messages on Android 7 Android: Detect SMS Outgoing, Incorrect Count 2 Get attachment from unread MMS messages 0 Android MMS Monitoring 0 How to get total count of incoming and outgoing MMS in Android? 0 Way to know number of unread message from a particular number Load 7 more related questions Show fewer related questions
Reset to default