Programmatically determine when an outgoing call starts to answer a call (calls another person)
I want to know how to detect in android when an outgoing call is acceptable (but not yet accepted) by another person and you receive a callback tone.
I tried PhoneStateListener
using the method onCallStateChanged(int state, String callingNumber)
, but the state is only returned to me 2
(starts) and 0
(ends), not when the call is acceptable by the other person (there is a time between you the call starts and the other phone takes the call and starts ringing)
Is there already an android method to know it or what to do?
+3
source to share