Broadcast receiver for sms - how to block / delete sms before it is read by default for messaging application

I want to create an application that will store sms messages with specific words contained in sms and not allow it to reach the default messaging application. I understand that I need to place the broadcast receiver for sms messages in my application, but how can I make sure that if the message contains KEYWORD, the message is deleted immediately and becomes inaccessible to any other messaging application? I am stuck here, so any help is appreciated. Thanks you

Hi,

Farhan

+3
source share
1 answer
+5

All Articles