Reputation: 779
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 ?
Upvotes: 1
Views: 196
Reputation: 39181
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.
Upvotes: 4