Block outgoing SMS by contentObserver

后端 未结 2 742
孤街浪徒
孤街浪徒 2020-12-16 07:22

I want to block SMS by contentObserver. For that I want to get the phone number of the SMS first. What do I do to get the number? This is the code that I have,

2条回答
  •  孤街浪徒
    2020-12-16 08:05

    Nope, you cant. Observer will comeinto affect after dataset has been modified, by that time sms will already be on the way for delivery. Infact by any means you cant block outgoing sms.

提交回复
热议问题