在用户按下呼叫按钮和用户开始听到呼叫声音的操作之间获取事件
Getting event between actions user press call button and when user start hear call sounds
我在 TelephonyManager 中发现了 3 个事件,但如何测量 phone 连接订阅者所需的时间?可能吗?
/** Device call state: No activity. */
public static final int CALL_STATE_IDLE = 0;
/** Device call state: Ringing. A new call arrived and is
* ringing or waiting. In the latter case, another call is
* already active. */
public static final int CALL_STATE_RINGING = 1;
/** Device call state: Off-hook. At least one call exists
* that is dialing, active, or on hold, and no calls are ringing
* or waiting. */
public static final int CALL_STATE_OFFHOOK = 2;
不,这不可能。没有呼叫已接通或已接电话的事件广播。
我在 TelephonyManager 中发现了 3 个事件,但如何测量 phone 连接订阅者所需的时间?可能吗?
/** Device call state: No activity. */
public static final int CALL_STATE_IDLE = 0;
/** Device call state: Ringing. A new call arrived and is
* ringing or waiting. In the latter case, another call is
* already active. */
public static final int CALL_STATE_RINGING = 1;
/** Device call state: Off-hook. At least one call exists
* that is dialing, active, or on hold, and no calls are ringing
* or waiting. */
public static final int CALL_STATE_OFFHOOK = 2;
不,这不可能。没有呼叫已接通或已接电话的事件广播。