Search code examples
androidtelephonymanager

Getting event between actions user press call button and when user start hear call sounds


I found 3 events in TelephonyManager, but how can I measure time that phone need to connect subscriber? Is it possible?

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

Solution

  • No, this isn't possible. There's no event broadcast for call connected, or call picked up.