简体   繁体   English

广播接收器在一段时间后停止

[英]BroadcastReceiver stopped after a while

I have defined a BroadcastReceiver in app manifset . 我已经在app manifset中定义了BroadcastReceiver I used it for doing some job on predefined intervals. 我用它来按预定的时间间隔做一些工作。 After a while ( maybe a couple of months) the BroadcastReceiver stops receiving broadcasts. 一段时间(也许几个月)之后, BroadcastReceiver停止接收广播。 Rerunning app doesn't solve problem. 重新运行应用程序无法解决问题。 The point is clearing data or cache doesn't solve problem. 关键是清除数据或缓存不能解决问题。 Uninstalling and reinstalling even has no effect. 卸载和重新安装甚至无效。 The only solution is to uninstall, then reboot, then reinstall! 唯一的解决方案是先卸载,然后重新启动,然后重新安装!

在更高版本中,强制关闭广播后,BroadcastReceiver将不会接收广播。

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

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