【问题标题】:In rooted device detect if an outgoing call has been answered在有根设备中检测是否已接听呼出电话
【发布时间】:2016-01-04 17:38:54
【问题描述】:

我正在开发一个系统应用,我需要在其中捕获拨出电话接听/拒绝事件。您能否建议如何在有根设备中实现这一点? TelephonyManager 类的问题是没有通知来电何时应答。 这对我的应用程序至关重要。我的目标设备是 android 4.4(kitkat)。

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

【问题讨论】:

  • 嗨,您找到解决方案了吗?我也在做一部有根手机。

标签: android android-4.4-kitkat


【解决方案1】:

为此,您必须注册广播接收器以监听电话事件,例如来电、去电、挂断事件,并且不要忘记在清单文件中定义广播。

我在这里附上一个链接,可以帮助您实现代码 http://karanbalkar.com/2014/02/detect-incoming-call-and-call-hangup-event-in-android/

http://www.codeproject.com/Articles/548416/Detecting-incoming-and-outgoing-phone-calls-on-And

【讨论】:

  • Vaibhav 我需要知道拨出电话是否被接听。当拨出电话被接听时,上面的代码不会捕获任何事件。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-02
  • 1970-01-01
相关资源
最近更新 更多