What I want: I want to be the first to receive the Sms Broadcast and I want to cancel the broadcast if SMS is of my interest only, so that The broadcast doesn't reach any other app/receiver (Default messaging app etc.). What I know is:
- SmsDisptacher.java uses orderedBroadcasts that can be can canceled/aborted.
What I don't know is:
- If orderedBrodcasts can be canceled for other apps/receivers i.e other than yourself.
what I have tried for being the first to receive the Broadcast:
- intent-filter android:priority="1000"
What i have tried for canceling broadcast already:
- AbortBroadcast();
- broadcastReceiver.setResultCode(RESULT_CANCELED)
- clearAbortBroadcast()