什么是PhoneStateListener状态时呼出回答 [英] What is the PhoneStateListener state when outgoing call is answered

查看:175
本文介绍了什么是PhoneStateListener状态时呼出回答的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要当一个呼出我的应用程序是回答知道。我使用从PhoneStateListner类)呼吁onCallStateChanged(的方法。我在看的时候logcat中传出呼叫被应答看到它进入(IDLE,OFFHOOK或振铃)的状态。根据文档,我觉得它会进入OFFHOOK但事实并非如此......我如何可以检测呼出任何想法正在回答?

I want to know when an outgoing call is answered in my app. I am using a method called onCallStateChanged() from the PhoneStateListner Class. I am looking at the Logcat when the outgoing call is answered to see which state it goes into(IDLE,OFFHOOK or Ringing). As per the documentation I would think it would go into the OFFHOOK but that is not the case...Any ideas on how I can detect the outgoing call being answered?

推荐答案

手机状态是Phonestate.Offhook因为你被摘机的电话很明显接听来电

phone state is Phonestate.Offhook as you are answering the call by offhooking the phone it's obvious

这篇关于什么是PhoneStateListener状态时呼出回答的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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