Is there any ways to differentiate MMS and SMS messages by using a MMS/SMS listener before they hit the inbox?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first indicator of an MMS message is a WAP-push with the MIME-type “application/vnd.wap.mms-message”, so you could register a receiver for “android.provider.Telephony.WAP_PUSH_RECEIVED”:
To discover whether or not its a received MMS you’re going to have to crack open the PDU:s and extract the
X-Mms-Message-Type, which should bem-notification-ind(as per WAP 209). You can also pick out the X-Mms-Transaction-ID, which one thinks should be stored in theTelephony.Mms.TRANSACTION_IDcolumn in the message provider if you want to link them up later.