跑adb logcat|grep -i currentCallState
您将获得日志:
D/PhoneUtils( 1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils( 1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils( 1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils( 1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils( 1242): setAudioMode() currentCallState : ALERTING
D/PhoneUtils( 1242): setAudioMode() currentCallState : ACTIVE
D/PhoneUtils( 1242): setAudioMode() currentCallState : DISCONNECTING
D/PhoneUtils( 1242): setAudioMode() currentCallState : IDLE
DIALING - 仍在拨号 ALERTING - 响铃 DISCONNECTING - 单击 Disconnect IDLE - 返回正常状态