Taking the phone off-hook (take a phone call)

Put your problem here if it does not fit any of the other categories.

Taking the phone off-hook (take a phone call)

Postby javarookie » Fri Feb 06, 2009 4:07 pm

Hello,

I have managed to implement a BroadcastReceiver that notifies about incoming calls. So far so good. But what if I want to take an incoming call (i.e. off-hook)? I couldn't find any info about that in the SDK. Can anybody give me a hint?

Thanks!

javarookie
javarookie
Freshman
Freshman
 
Posts: 3
Joined: Fri Feb 06, 2009 3:57 pm

Top

Re: Taking the phone off-hook (take a phone call)

Postby javarookie » Sat Feb 07, 2009 1:06 pm

*bump*

I found this but it doesn't seem to do anything.

Code: Select all
                       Intent.ACTION_ANSWER


And its not well documented.
javarookie
Freshman
Freshman
 
Posts: 3
Joined: Fri Feb 06, 2009 3:57 pm

Re: Taking the phone off-hook (take a phone call)

Postby javarookie » Sat Feb 07, 2009 1:53 pm

Okay, I have found something. If anybody is interested in this then take a look at
Code: Select all
/frameworks/base/telephony/java/com/android/internal/telephony/Phone.java
method acceptCall()

and for info how to use in
Code: Select all
/packages/apps/Phone/src/com/android/phone/PhoneUtils.java
method answerCall()
javarookie
Freshman
Freshman
 
Posts: 3
Joined: Fri Feb 06, 2009 3:57 pm

Re: Taking the phone off-hook (take a phone call)

Postby sankee » Mon Apr 20, 2009 1:23 pm

javarookie wrote:Okay, I have found something. If anybody is interested in this then take a look at
Code: Select all
/frameworks/base/telephony/java/com/android/internal/telephony/Phone.java
method acceptCall()

and for info how to use in
Code: Select all
/packages/apps/Phone/src/com/android/phone/PhoneUtils.java
method answerCall()


can you please let me know where to find Phone.Java and PhoneUtils.java, because i am unable to attend the call in emulator with Intent.ACTION_ANSWER. Please let me know the solution to attend the call programatically.
sankee
Freshman
Freshman
 
Posts: 2
Joined: Thu Apr 16, 2009 8:44 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 17 guests