My application deals with Cell Broadcast messages, which is a non ordered broadcast. I want my application to receive this broadcast and kill the message notification of CB messages.
I've found out that SMS notification can be suppressed by using an intent filter with a priority tag as shown below
<receiver android:name="com.example.sis.xxyyReceiver" >
<intent-filter android:priority="999">
<action android:name="android.provider.Telephony.SMS_RECEIVED" >
</action>
</intent-filter>
</receiver>
So I've tried to do the same with CB messages like this
<intent-filter android:priority="100">
<action android:name="android.provider.Telephony.CB_RECEIVED" >
</action>
</intent-filter>
But it didn't work, and the log cat looks as follows
From my research and below comments, I've learned that non Ordered broadcasts cannot be aborted, So all I want to do is to suppress the notification (i.e CB_SMS alert and vibration) generated by CB message.
Can anyone help me with this aborting of non ordered broadcasts notification??
You cannot abort regular broadcasts. Everybody who has registered a BraodcastReceiver
for them will get them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With