Because the Activity did not handle the key event. It's the previously focused button that handled the key event :)
On Wed, Mar 4, 2009 at 9:51 AM, Meryl Silverburgh <[email protected]> wrote: > > Hi, > > Can you please tell me why Activity dispatchKeyEvent(KeyEvent event) > method always return false? > I press UP/DOWN key (on keyboard), and I see the focus of each button > moves from one to another. > So I think the Activity has handled the UP/DOWN key. My question is > why dispatchKeyEvent() always return false? > > Another question is how another class (which only have a reference to > Activity) tells if the Activity handles the UP/DOWN key for focus > navigation? > (e.g. return true, if the Activity moves focus from 1 button to > another, return false when the Activity reaches the end of the button > list) > > Thank you. > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

