简体   繁体   English

BroadcastReceiver一直处于活动状态

[英]BroadcastReceiver active all the time

I have a app that has call blocking feature in it and that work is done by class BroadcastReceiver. 我有一个具有呼叫阻止功能的应用程序,并且该工作由BroadcastReceiver类完成。 When I install this app, the call is blocked always no matter what. 当我安装此应用程序时,无论如何都将始终阻止该呼叫。 How to get rid of this? 如何摆脱这个? I want this app to be active only when App is up and running . 我希望此应用程序仅在启动并运行时才处于活动状态。 If I stop the service the App should not block the call. 如果我停止服务,则应用程序不应阻止该呼叫。 Thank you any help will be appreciated. 谢谢您的任何帮助,我们将不胜感激。

Are you the developer, or a user? 您是开发人员还是用户? If the latter, then you need to bring it up to the programmer of the app. 如果是后者,则需要将其带给应用程序的程序员。 If the former, then simply don't respond to the received broadcast when the app is not "active". 如果是前者,则在应用程序不处于“活动”状态时,根本不响应收到的广播。

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

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