Receiving and downloading MMS messages in Android 12
I have xamarin android app and I wan to receive mms messages and download the content from the carrier location, I was able to get the mms message when received and I was able to extract the phone number from it but I couldn't find a way to locate and download mms content (image/audio) I found some code online but it was for android KitKat and is not working for newer android version as most of the class used in it was removed yrs ago. any help appreciated.
You need to use different URIs to get the parts from MMS message. You could refer to java - How to read incoming MMS and SMS messages on Android - Stack Overflow, it should be helpful for you.
Sign in to comment
thanks for the response
this answer you referring could work if the app is not the default app for sms/mms so the original app handle the downloading of the incoming mms cuz when set the app to be the default it needs to handle all of that include downloading & inserting of the incoming mms and google doesn't have any docs on that :(
This is not possible, because it can lead to security issues.
As you said, Google has removed those classes.