Oh sorry, I should've been more clear.
I was talking about the ACTION_NEW_OUTGOING_CALL.
Hanging up incoming call programmaticaly is currently impossible.
As for the outgoing call - it can be terminated only when initiated,
because only then we can catch the Intent. After that there seems to
be no access to the call.
There is also no heart-beat message sent out every so often to
indicate an active call.
PhoneStateListener is also not helpful in this matter, as it receives
only "state changes" events.

http://groups.google.com/group/android-developers/browse_frm/thread/41ae9a5fc8d17720?hl=en#

On Oct 29, 10:30 pm, dreamerBoy <[EMAIL PROTECTED]> wrote:
> ...Interesting....
>
> Thanks so much for the reply.
>
> Perhaps I have misunderstood but I have some questions about this
> approach.
>
> i)  A Broadcast receiver is a passive entity.   What would be the
> active entity that will be generating the Intent?  Remember, my code
> is supposed to be the one to initiate end-of-call NOT a human user.
> Why would there be an event out there at any given moment waiting for
> my code to capture?  Is there some kind of heart-beat message sent out
> every so often to indicate an active call?
>
> ii)  Which Intent is the one of interest?  I couldn't find anything
> that matches in the Standard Broadcast Actions of Google's
> android.content.Intent write-up page.
>
> You might be talking about the ACTION_NEW_OUTGOING_CALL broadcast.
> However, I don't want to prevent an outgoing call, I want to hang up a
> call that is already connected  - whether the call originated from or
> is answered by the g-phone.
>
> Paul
>
> On Oct 29, 1:42 am, legerb <[EMAIL PROTECTED]> wrote:
>
> > You can use a BroadcastReceiver to catch the Intent, and terminate it
> > with abortBroadcast().
>
> > On Oct 27, 8:50 pm, dreamerBoy <[EMAIL PROTECTED]> wrote:
>
> > > Hi -
>
> > > I am looking for a way to terminate a call in anautomatedfashion.
> > > (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.
>
> > > Can anyone shed light on this issue?
>
> > > Thanks much.
>
> > > Paul
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to