SMS cannot be prevented using abortBroadcast()?

≯℡__Kan透↙ 提交于 2019-12-05 10:49:47

Definitely you can do this, code that you have written is perfectly fine,

Try changin priority from <intent-filter android:priority="9999999"> to <intent-filter android:priority="99999999"> , basically higher priority then what you have given, then try to check.

Is it showing the Toast from receiver? Probably your Receiver is not registered properly in Manifest.

try to change,

<receiver android:name="SMSMonitor">

to

<receiver android:name=".SMSMonitor">
Wise

"As of Android 1.6, incoming SMS message broadcasts (android.provider.Telephony.SMS_RECEIVED) are delivered as an "ordered broadcast" — meaning that you can tell the system which components should receive the broadcast first." and I am using Android 1.5 And the broadcast is non-ordered!

Thanks to this guy here link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!