Override default android messaging application

后端 未结 3 1796
小鲜肉
小鲜肉 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:24

    If you sent priority of your BroadcastReceiver high enough, your application is the first one receiving the message, BEFORE the message is stored in the database. I guess the solution would be to store the message in the database yourself and call abortBroadcast();, but I didn't try this myself, yet.

    Good luck!

提交回复
热议问题