• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

android.telecom.Call

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 don't think this is technically possible to detect, and hence why the API doesn't support it.
That class you found looks promising, but I too couldn't find any examples.
I'll let you know if I turn anything up.
 
I don't think this is technically possible to detect, and hence why the API doesn't support it.
That class you found looks promising, but I too couldn't find any examples.
I'll let you know if I turn anything up.
Thank you for your time. It certainly looks like it could do what I want it to do, but getting it to work with my limited android \ Java skills is proving difficult!
 
Back
Top Bottom