Android - Broadcast Receiver not being fired

强颜欢笑 提交于 2019-12-01 11:42:29
Changwei Yao

Because the SMS broadcast intent is sent by Context.sendOrderedBroadcast(...), if any other app registers the BroadcastReceiver and calls abortBroadcast, the other receiver will not get the broadcast.

To increase the probability of your app receiving the broadcast create an IntentFilter, use IntentFilter.setPriority.

Lukap

I do not know if this is your problem but you should definitelly try this:

Instead of ".MessageReceiver" put android:name = "com.encima.smsreceiver.MessageReceiver"

This is fix that workout many times for me when something doesn't get called.

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