call handling

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

call handling

Postby königdmx » Thu Feb 21, 2008 1:35 pm

Hi @all,

can you tell me something to the following points (or a link):
- how to handle calls, but primary i want to know..
- how to answer a incoming call?
königdmx
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 19, 2008 11:09 am

Top

Postby königdmx » Thu Feb 21, 2008 2:31 pm

whats about

android.telephony.Call.State.DISCONNECTED
android.telephony.Call.State.DIALING
android.telephony.Call.State.INCOMING
...
and so on..

how to check up these events for calls?
königdmx
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 19, 2008 11:09 am

Postby plusminus » Thu Feb 21, 2008 4:18 pm

Hello königdmx,

the :src: Recognize incoming PhoneCalls-Tutorial may be of interest for you :)

Excerpt:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                     if(myState == Phone.State.RINGING){
  2.                          // Celebrate =D, there is an incoming call.
  3.                     }  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby königdmx » Thu Feb 21, 2008 4:53 pm

hello plusminus:

no, this tutorial handles only the phone state. i want to handle call states.
in your tutorial only three states are possible for the phone (RINGING, IDLE, OFFHOOK), these are defined in android.telephony.phone.state.

but it exists android.telephony.call.state and there are call states (INCOMING, DIALING, DISCONNECTED...) defined. i want to look at these events...
königdmx
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 19, 2008 11:09 am

Postby königdmx » Fri Feb 22, 2008 3:33 pm

plusminus?
königdmx
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 19, 2008 11:09 am

Postby königdmx » Mon Feb 25, 2008 11:28 am

to restart my request:

I need a android-function, which wait for the events

...Call.State.DISCONNECTED,
...INCOMING,
...DIALING etc.

In Windows Mobile this function called "lineCallbackFunc". Via the function is it possible to handle GSM events, such as as incoming or outgoing calls. Is there an equivalent in android. I want to responsive to these events.

Can anybody help me?
Or have anybody a practical link??

Thank you!
Greetz!
königdmx
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 19, 2008 11:09 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests