用于检查呼叫是拨号还是活动的Android API

时间:2016-06-23 12:37:17

标签: android

以下是在不同场景中经历的状态:

1)接听来电

CALL_STATE_RINGING => CALL_STATE_OFFHOOK (After Answering call) => CALL_STATE_IDLE (After End call)  

2)拒绝/不接听(错过)接听电话

CALL_STATE_RINGING => CALL_STATE_IDLE (After End call)  

3)拨打电话

CALL_STATE_OFFHOOK (After dialing) => CALL_STATE_IDLE (After End call)

在Android中“拨打”呼叫状态变为“活动”时如何捕捉情况?

0 个答案:

没有答案