You could try grabbing it in dispatchKeyEvent(), however if another view (visibly) has focus, then your application's users are going to be confused when pressing the trackball does not invoke the selected item, but does something else instead. Can you make your views non-focusable instead?
On Sun, Mar 1, 2009 at 8:24 AM, Teo <[email protected]> wrote: > > Hi, > > what i'm trying to do is make the DPAD_CENTER key be a shortcut for a > specific feature. But sometimes a certain view has focus and no matter > how i try to clear the focus or implement the event handling i can't > override the activation of that selected view.. (And yes, i return > true in the onKeyDown function :) > > Thanks, > Teo > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

