tags:

views:

378

answers:

1

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

+2  A: 

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:
http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox/2566199#2566199

Christopher