识别拨出呼叫连接事件
我正在开发一个 Android 应用程序,用于测量从呼叫开始到呼叫实际连接目标手机(铃声响起时)的拨出呼叫所花费的时间。
例如:当我们拨打电话时,会发生以下事件:
- 已拨出电话 ---> 2. 网络寻找目标手机(同时听到嘟嘟声)---> 3.目标手机响铃---> 4. 目标话机接听电话---> 5.通话结束。
所以我需要测量 event-1 到 event-3 之间的时间。
我可以通过 phoneStateListener
检测到 event 1
,其中电话呼叫状态变为 OffHook
但Android没有提供任何API或方法来检测事件3
。我还立即监控 logcat,但发现没有任何帮助。
我从上周就陷入其中,一无所获。请帮助我识别事件 3。
I am developing an android Application that measures the time taken by the outgoing call from the moment calling starts upto the call actually connects with the target phone ( just when the ring goes on).
for ex: When we dial a call following are the events that occurs:
- outgoing call made ---> 2. network looks for the target phone( meanwhile we hear beeps ) ---> 3.Ring goes on the target phone ---> 4. target phone picks the call ---> 5.call Ended.
so I need to measure the time between event-1 to event-3.
I can detect the event 1
through phoneStateListener
where phonecall state goes to OffHook
but Android does not provide any API or method for detecting event 3
. I also monitor the logcat at theat instant but find nothing helpfull.
I am stucked in it from last week and reached no where. Please help me in Identifying the event 3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论