It depends on what you mean by 'override'. You can't change the way
Android initiates and receive calls, but you can use those buttons in
your own app, with Activity.onKeyDown:

http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int,%20android.view.KeyEvent)

The KeyEvent code is KEYCODE_CALL for the green button, and
KEYCODE_ENDCALL for the red.




Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Jul 20, 1:03 pm, Romain Guy <[email protected]> wrote:
> No you cannot.
>
> On Jul 20, 2009 12:52 PM, "szantaii" <[email protected]> wrote:
>
> Hi,
>
> My question is that is it possible to override the physical green and
> red buttons on Android which by default are used to accept and end
> calls. For example, in my own activity those buttons won't serve as
> accept call, deny call or end call but they can function for something
> other. Is this possible on Android today?
> I'm currently using Android SDK 1.5 r1. Thanks in advance.
>
> --
> szantaii
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to