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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -