gganesh wrote:
> I wrote a simple program using SimpleAdapter to populate list view .To
> do this i modified the existing notepad example and try using
> onKeyDown instead of onCreateOptionMenu .Here i can activate the
> onKeyDown method for first time only,for the second press, on the
> appropriate key, the onKeyDown is not called ,I can say this from
> logcat output.I could not guess the reason .

If I had to guess, I would say that the ListView is intercepting your
KEYCODE_DPAD_CENTER events.

To prove this, try switching to some other key that ListView does not
handle itself. If you then get both events, that means my guess is correct.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to