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 <[email protected]> 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
> [email protected]
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to