简体   繁体   English

手提式应用禁止显示SMS_RECEIVED广播

[英]handsent app suppresses SMS_RECEIVED broadcast

i have an app in the market that handles android.provider.Telephony.SMS_RECEIVED broadcasts. 我在市场上有一个可以处理android.provider.Telephony.SMS_RECEIVED广播的应用。 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. 现在我意识到,一旦在特定设备上安装了handcent短信,就不再发送广播了(或者至少我不再得到广播了)。

  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 谢谢西蒙

how is it possible that an app can suppress a broadcast from being sent? 应用程序如何抑制广播的发送?

SMSes are sent as an ordered broadcast. SMS作为有序广播发送。 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. 让您的接收器的<intent-filter>优先级高于Handcent的优先级,这可能是不可能的。

Or, uninstall Handcent. 或者,卸载Handcent。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM