It shouldnt be "stolen" but it should be overridable. Much like the app picker behaves when multiple apps are registered for an Intent.
I dont know how the internals of how the off hook button works but couldnt it broadcast an Intent to go "off hook" which then can be handled like any other intent. To avoid the annoying situation of having to choose an app every time a changeable default could be setup. (Like how RingDroid replaces the default ringtone picker) On Mon, Nov 3, 2008 at 3:15 PM, hackbod <[EMAIL PROTECTED]> wrote: > > Correct, you can't steal it from other apps. When your apps is in the > foreground, however, you will see the key as a normal key event that > you can process however you want. > > On Nov 3, 1:11 pm, "Shawn" <[EMAIL PROTECTED]> wrote: > > I don't think you would be allowed to remap the phone button that would > force people to use your app even if they didn't want to and my be > considered malacious. That's just an opinion though > > > > -----Original Message----- > > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > Date: Mon, 3 Nov 2008 13:09:53 > > To: Android Developers<[email protected]> > > Subject: [android-developers] "hooking" to the PHONE button > > > > Hi, > > > > How can I make my own application run whenever the user presses the > > green PHONE button ? > > > > TIA > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

