1. Download our Official Android App: Forums for Android!

android.telecom.Call

Discussion in 'Android Development' started by Mike Winter, Mar 13, 2018.

  1. Mike Winter

    Mike Winter Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Feb 23, 2018

    Feb 23, 2018
    4
    0
    15
    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
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,449
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,449
    10,735
    1,988
    Male
    Software developer
    South West of England
    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.
     
  3. Mike Winter

    Mike Winter Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Feb 23, 2018

    Feb 23, 2018
    4
    0
    15
    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!
     

Share This Page

Loading...