我在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;
答案 0 :(得分:1)
不,这是不可能的。连接呼叫或接听电话没有事件广播。