handsent app suppresses SMS_RECEIVED broadcast

痴心易碎 提交于 2020-01-05 10:30:12

问题


i have an app in the market that handles android.provider.Telephony.SMS_RECEIVED broadcasts. now i realized, that the broadcast is not sent anymore (or at least i don't get it anymore) as soon as handcent sms is installed on the particular device.

  1. how is it possible that an app can suppress a broadcast from being sent?
  2. is there a way to still get the broadcast?

thanks simon


回答1:


how is it possible that an app can suppress a broadcast from being sent?

SMSes are sent as an ordered broadcast. High priority receivers can abort the broadcast, preventing lower priority receivers from getting their chance at it.

is there a way to still get the broadcast?

Have your receiver have a higher-priority <intent-filter> than Handcent, which may or may not be possible.

Or, uninstall Handcent.



来源:https://stackoverflow.com/questions/9641064/handsent-app-suppresses-sms-received-broadcast

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