“android.provider.Telephony.SMS_RECEIVED” not working on my device (HTC Wildfire) - how to debug?

前端 未结 4 1145
礼貌的吻别
礼貌的吻别 2020-12-09 06:36

I face really frustrating problem.

I created SMS receiver as most online and book\'s tutorials say.

AndroidManifest.xml:



        
4条回答
  •  时光取名叫无心
    2020-12-09 07:12

    Reason & Solution:

    I've fix that. "android.provider.Telephony.SMS_RECEIVED" was not working because I had "GO SMS Pro" application installed on my device and there was "Disable other message notification" option checked ("Disable other SMS related apps' notification in notification bar, avoid duplicate notifications."). Unchecking it fixed my problem.

    How to make sure that my broadcast receiver will receive this intent even if some other app blocks it? Due to "android:priority" (Intercept SMS messages in Android and prevent them appearing in Messaging App) how can I know what "priority" is set for "GO SMS Pro" app?

提交回复
热议问题