Question

I'm building a spam-blocker app for android as a personal exercise.

For pre-KitKat versions, i used the broadcast receiver android.provider.Telephony.SMS_RECEIVED without any problem. But for Kit Kat, my app needs to be the default SMS app to receive the broadcast android.provider.Telephony.SMS_DELIVER, so if a SMS is not a spam, it won't be delivered to the user.

Is there anyway to bypass this restriction ?

Was it helpful?

Solution

In a word, no. It should also be mentioned that, as of KitKat, the SMS_RECEIVED_ACTION cannot be aborted anyway.

Note that—beginning with Android 4.4—any attempt by your app to abort the SMS_RECEIVED_ACTION broadcast will be ignored so all apps interested have the chance to receive it.

Source

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top