hanging up/terminating a call in an automated fashion

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

hanging up/terminating a call in an automated fashion

Postby phubenig » Thu Oct 30, 2008 2:38 am

Hi -

I am looking for a way to terminate a call in an automated fashion.
(I realize it can be done manually - the application requires that it
have control over the call so that it can hang up automatically.)

To initiate a call, one starts an Activity with the ACTION_CALL
Intent.

However, there does not appear to be any corresponding way to end it
with a corresponding Intent, or using the Telephony or
TelephonyManager interface/package.

The only thing I can thing of is calling finish() on the Activity used
to start the call - but that doesn't seem right at all.

Second question is how to hang up an ~incoming~ call after it has been
answered ....

Can anyone shed any light on this issue?

Thanks much.

Paul
phubenig
Junior Developer
Junior Developer
 
Posts: 11
Joined: Tue Oct 07, 2008 11:55 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests