stop SMS propagation
<p>I am trying to not to propagate an sms upon receiving like this</p>

<pre><code>public class SMSReceiver extends BroadcastReceiver {
@Override
    public void onReceive(Context context, Intent intent) {
        abortBroadcast();
        setResultData(null);
    }
}
</code></pre>

<p>AndroidManifest.xml</p>

<pre><code>&lt;receiver android:name=".SMSReceiver" android:enabled="true" android:priority = "100" &gt;
          &lt;intent-filter&gt;
            &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
          &lt;/intent-filter&gt;
        &lt;/receiver&gt;
</code></pre>

<p>but this is not working. I have been looking for a fix for days now. any help is highly appreciated.</p>

<p>Thanks</p>
