Search code examples
javaandroidsmsbroadcastreceiver

How know when any app send SMS


How I can khow when (and address, body etc) any application send SMS (MMS)?

I find many examples for broadcastreceiver on receive SMS, but none on sending SMS. I can't find identfilter's action on this broadcast.


Solution

  • you can try one thing. Register a content observer for message log. By that when A message is sent it will enlisted in message log and your observer will catch that.. .. haven't tried it yet , so better check if possible

    UPDATE:

    you have to register the observer for "content://sms". This question and the answer might help you

    also check this example code