How to determine when an outgoing call is being received

I cannot determine when the answer to the outgoing call was received. I registered BroadcastReceiver for broadcasting PHONE_STATE, but onReceive () is called only when the number is dialed and when the call ends.

Edit: if this is not possible with the current API (1.5 or 1.6), please enlighten me?

+3
source share
2 answers

Android does not have a specific listener, but to check the answer to a call (outgoing call) or not. When a number is dialed, it goes into off_hook state (in case of an outgoing call). This is one of the drawbacks Android telephony has yet to come up with.

+1

, - , , . , (PSTN), , . , , . , , - , .

( ), , , . CDMA , , , .

0

Source: https://habr.com/ru/post/1719236/


All Articles