Search code examples
androidsmsmms

Can you intercept a MMS SMS message and extract the image on Android?


I want to basically intercept a text message that has an image attached, and save that somewhere automatically. Can this work on Android?


Solution

  • Yes, this should be possible. You can set up a BroadcastReceiver to watch for the android.provider.Telephony.SMS_RECEIVED and parse the message out of that. There's plenty of examples on the web (and questions on StackOverflow).

    As for preventing the user from seeing the original message, see also this answer:
    Can we delete an SMS in Android before it reaches the inbox?