简体   繁体   English

广播接收器总是可以正常工作吗?

[英]A broadcast receiver is it always working?

I'm developping a SIP application and i have a broadcast receiver to receive incoming calls. 我正在开发SIP应用程序,并且我有一个广播接收器来接收传入的呼叫。 My question: when i quit the application i see that the process of my app is working but don't receive incoming calls. 我的问题:当我退出应用程序时,我看到我的应用程序正在运行,但是没有收到来电。 Is it normal ? 正常吗? why it's not listening to incoming calls and catch them to the the ALertDialog that i coded it? 为什么它不监听传入的呼叫并将它们捕获到我为其编码的ALertDialog中? Thank you. 谢谢。

While not exactly like your scenario, I hope this helps.. 虽然不完全符合您的情况,但希望对您有所帮助。

I've recently implemented a broadcast listener to intercept new outgoing calls to a specific number. 我最近实现了一个广播侦听器,以拦截到特定号码的新呼出电话。 I've tested a successful interception even after using Advanced Task Killer to kill off the app. 即使使用Advanced Task Killer杀死了该应用程序,我也测试了成功的拦截。 It still intercepted the broadcast 100% of the time. 它仍然100%地拦截了广播。

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

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