Mike Winter
Lurker
Hi All
I am new to Android, so apologies for asking a newbie question!
I am trying to write an app which can make a call. In the call I need to know the state of the call. To make the call, I am using:
startActivity(new Intent(Intent.ACTION_CALL , Uri.parse("tel:12345678")));
This is working OK, except that you do not get much information about the call status of an outgoing call. The 3 states that you get are CALL_STATE_IDLE, STATE_RINGING (for incoming call), and STATE_OFFHOOK.
I need to be able to see the status of my outgoing call, in particular if it has been answered.
I have since found the android.telecom.Call class, which looks like it may provide me with what I want, but cant find any examples of how to use it! Does anyone have a link to further information about this class, and an example?
Thanks in advance for your advice!
Mike
I am new to Android, so apologies for asking a newbie question!
I am trying to write an app which can make a call. In the call I need to know the state of the call. To make the call, I am using:
startActivity(new Intent(Intent.ACTION_CALL , Uri.parse("tel:12345678")));
This is working OK, except that you do not get much information about the call status of an outgoing call. The 3 states that you get are CALL_STATE_IDLE, STATE_RINGING (for incoming call), and STATE_OFFHOOK.
I need to be able to see the status of my outgoing call, in particular if it has been answered.
I have since found the android.telecom.Call class, which looks like it may provide me with what I want, but cant find any examples of how to use it! Does anyone have a link to further information about this class, and an example?
Thanks in advance for your advice!
Mike