Also I'd like to understand why you would have significant changes here. There are only two hard keys that are handled at this level -- home and end call.
On Fri, May 13, 2011 at 8:48 PM, Dianne Hackborn <hack...@android.com>wrote: > You can't do this in third party apps. The hard keys are handled by the > system in PhoneWindowManager. > > > On Thu, May 12, 2011 at 4:33 PM, Edmund <chang.edm...@gmail.com> wrote: > >> Hi, >> >> I was wondering if there was a way to enable/disable long-press >> features for the android hard key buttons. Also, what is the best >> approach to trap hard key inputs across all the applications running >> in our system. And also how to remap their meanings. >> >> Can this be done at an APK level above the Android OS framework, or >> does this have to be done by extending IWindowManager like we are >> already currently doing. We are trying to do more things at a higher >> level (above extending/modifying android source code) so we can move >> up from Android 2.1 to 2.2 and 2.3 quicker/easier. >> >> Thanks, >> --Edmund Chang >> chang.edm...@gmail.com >> >> -- >> unsubscribe: android-porting+unsubscr...@googlegroups.com >> website: http://groups.google.com/group/android-porting >> > > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting