在操作之间获取事件用户按下呼叫按钮以及当用户开始听到呼叫声时

时间:2018-06-18 14:11:19

标签: android telephonymanager

我在TelephonyManager中发现了3个事件,但是如何衡量手机连接用户所需的时间?有可能吗?

/** 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;

1 个答案:

答案 0 :(得分:1)

不,这是不可能的。连接呼叫或接听电话没有事件广播。