问题
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.
- how is it possible that an app can suppress a broadcast from being sent?
- 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