如何检测android手机通话广播接收器 [英] how to detect phone call broadcast receiver in android

查看:148
本文介绍了如何检测android手机通话广播接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在建设一个android的应用程序,它会执行一个动作,当任何电话会在我的手机上。我曾与广播接收器和电话状态侦听尝试这个。但它不工作。如果我使用的活动,然后手机状态监听器运作良好,并不错,但它不与广播接收器的工作。我在做什么错了?请任何机构帮助....

I am building an application in android, which will perform an action when any phone call will come in my phone. I have tried this with broadcast receiver and phone state listener. But it is not working. If i use activity then phone state listener works well and good but it is not working with Broadcast receiver. What i am doing wrong? Please any body help....

感谢和放大器;问候

推荐答案

您可以找到一些基本的code表示,在这个职位:

You can find some base code for that in this posts:

<一个href=\"http://stackoverflow.com/questions/5571249/how-do-i-retrieve-the-incoming-phone-calls-number-while-ringing-and-store-it-in\">how重新获取呼入电话的振铃的同时并将其存储在一个变量的Andr​​oid多少?

如何阻止Android中通话

这篇关于如何检测android手机通话广播接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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