短信收到我的短信应用程序,并在视频群聊,虽然我叫abortBroadcast() [英] SMS Received in my SMS app and in Hangouts, although I call abortBroadcast()

查看:167
本文介绍了短信收到我的短信应用程序,并在视频群聊,虽然我叫abortBroadcast()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有短信拦截Android应用程序开发自己这是合作得非常好捕捉所有的垃圾邮件直到最近谷歌更新了视频群聊应用程序与短信工作。

I have an SMS blocker Android application developed myself which was working quite well capturing all the spams until recently Google updated its Hangouts app to work with SMSs.

问题:短信是越来越抓获的这两个我的应用程序和视频群聊!即使该消息被阻止我的应用程序,并存储在它的专用数据库,它也present在环聊应用程序,并因此在同时股票消息应用程序。

The Problem: SMS is getting captured by both my app and hangouts! Even though the message is blocked by my app and stored in its private database, it is also present in the hangouts app and thus in the stock Messaging app at the same time.

看来 abortBroadcast()不工作了。一切都可以正常使用了视频群聊更新。

Seems the abortBroadcast() isn't working any more. Everything was working perfectly before the Hangouts update.

我也试图与摆弄机器人:优先级却徒劳无功

推荐答案

聊使用最大可能的优先级(999元的意向筛选文档),因此你不能放弃它与LT; 4.4版本。在4.4+,只有默认短信应用(<一href="http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html">blog后与详细信息)可以收到短信通知 - 用户需要设置你的应用程序为默认的短信应用程序为您的应用程序正常工作(尽管它应该按预期如果出现这种情况)

Hangouts uses the maximum possible priority (999 per the Intent-Filter docs) and therefore you cannot abort it on <4.4 releases. On 4.4+, only the default SMS app (blog post with details) can receive SMS notifications - users would need to set your app as the default SMS app for your app to function correctly (although it should function as expected if that happens).

这篇关于短信收到我的短信应用程序,并在视频群聊,虽然我叫abortBroadcast()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆