Override default android messaging application

后端 未结 3 1771
小鲜肉
小鲜肉 2021-01-01 06:27

I want to override the default android messaging application. If I receive a sms or mms I want to send that to email but i don\'t want any notification on phone. So basica

3条回答
  •  迷失自我
    2021-01-01 07:19

    There is a way to block the message from going to the the default messaging app. If you set the priority of your BroadcastReceiver up high enough (we use 100) and call abortBroadcast to block the intent from being picked up by any lower priority BroadcastReceivers. It will only work if the intent broadcast is ordered, something that is out of our control. But it turns out that the SMS_SENT broadcast is ordered, and I suspect the MMS_SENT broadcast is as well.

提交回复
热议问题