Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phone call state

How do we know programmatically that the call I am making is received in the other side ? I know that there are some phone states like IDLE, OFFHOOK and RINGING. I want to be notified that the outgoing call I am making is received, is disconnected by the other side or is unattended by the other side.

Please suggest.

like image 882
Shaista Naaz Avatar asked Apr 21 '11 08:04

Shaista Naaz


People also ask

What is call state?

This method is called every time the state of a phone call changes. Then you can do something like this: switch(state) { case TelephonyManager.

What is phone state listener?

A listener class for monitoring changes in specific telephony states on the device, including service state, signal strength, message waiting indicator (voicemail), and others.

What is the role of TelephonyManager class?

TelephonyManager class provides information about the telephony services such as subscriber id, sim serial number, phone network type etc. Moreover, you can determine the phone state etc.


1 Answers

What I understand is that we cannot differentiate among the various states inside the OFFHOOK state, unless we have the internal package access.

If we have the internal package access then only we can know whether the call connected is actually received or missed or disconnected by the other side.

like image 192
Shaista Naaz Avatar answered Sep 23 '22 01:09

Shaista Naaz