作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是我的代码:
<receiver android:name=".IncomingSms" android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="2147483648">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
未安装 GoSMSPro 时,我的应用程序工作正常。我先安装我的应用程序,然后安装 GoSMSPro,但仍然无法接收短信。
我还有一个问题,就是安装了GoSMSPro,BeeTalk如何接收注册短信?
最佳答案
Android: Listen for incomming sms when GoSMSPro installed
一些应用程序以最高优先级注册 SMS BroadcastReceiver,因此这些应用程序首先接收收到的 SMS 的回调并停止此接收器,因此其他也注册此接收器的应用程序将不会接收回调。
替代选项,您可以使用 ContentObserver
接收回调,当有任何消息被接收/删除等时
关于java - Android:安装 GoSMS Pro 时收听传入的短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28778919/
这是我的代码: 未安装 GoSMSPro 时,我的应用程序工作正常。我先安装我的应用程序,然后安装 GoSMSPro,但仍然无法接收短信。
我是一名优秀的程序员,十分优秀!