Android outcoming call is taken listener -
i need run method, when outcoming call taken. in android possible?
i test broadcastreceiver - phonestatelistener, work on outcoming call start, not on outcoming call taken.
thanks.
you can have @ telephonymanager
. has phonestatelistener
said in can listen phonestatelistener#oncallstatechanged(int, string)
. in method states 3 listed in doc.
- call_state_idle
- call_state_ringing
- call_state_offhook
the 1 looking call_state_offhook
state for:
device call state: off-hook. @ least 1 call exists dialing, active, or on hold, , no calls ringing or waiting.
Comments
Post a Comment