I have problem. After my application is installed, SMS broadcast is intercepted successfully . But after reboot, all intercepted SMS broadcast still popup in Notification Bar (from Standard Sms application)
Broadcastreceiver:
public class OwnSmsBroadcastextends BroadcastReceiver{
private static final String SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED";
public void onReceive(Context context, Intent intent) {
final Bundle bundle = intent.getExtras();
if (intent.getAction().equals(SMS_RECEIVED)) {
abortBroadcast();
try {...
Manifest:
<receiver android:name=".OwnSmsBroadcast" android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="10000">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<action android:name="android.provider.Telephony.SMS_DELIVERED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
Why after reboot all intercepted notofications popups?