在有根设备中检测是否已应答去电 [英] In rooted device detect if an outgoing call has been answered

查看:100
本文介绍了在有根设备中检测是否已应答去电的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个系统应用,在其中我需要捕获拨出呼叫 answer/reject 事件.请问您如何在有根设备中实现此建议? TelephonyManager 类的问题是,没有通知何时拨出电话. 这对我的应用程序至关重要.我的目标设备是android 4.4 (kitkat).

I am developing a system app in which I need to capture the outgoing call answer/reject events. Could you advice on how to achieve this in a rooted device please ? Problem with TelephonyManager class is that there is no notification of when outgoing call has answered. This is crucial to my app. My target device is android 4.4(kitkat).

类似这个程序的东西. https://play.google.com/store/apps/details?id=io.github.yutouji0917.callvibrator.ad

Some thing like this app. https://play.google.com/store/apps/details?id=io.github.yutouji0917.callvibrator.ad

推荐答案

为此,您必须注册广播接收器以侦听电话事件,例如传入,传出呼叫,挂断事件,并且不要忘记在清单文件中定义广播.

To do this you must register broadcast receiver for listening phone events like incoming, outgoing call, hang up events and don't forget to define broadcast in manifest file.

我在这里附上一个链接,该链接将帮助您实现代码 http://karanbalkar.com/2014/02/检测到来电/通话挂断事件/android/

Here i am attaching a link that will help you to implement your code http://karanbalkar.com/2014/02/detect-incoming-call-and-call-hangup-event-in-android/

http://www. codeproject.com/Articles/548416/检测传入和传出的电话呼叫

这篇关于在有根设备中检测是否已应答去电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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