This is because you are launching the application witht he touch screen. Try 
launching it with trackball instead. The reason is that in touch mode focus 
does not exist so a key press is required to bring focus back. In the 
particular case of games, you can make the game's view 
focusableInTouchMode=true. This will fix your "issue." Do not, however, do 
this with regular views/UIs.

On Oct 28, 2008 8:58 AM, "g1ster" <[EMAIL PROTECTED]> wrote:


Guys, I still don't understand how the trackball wakes up the programs
after a restart. I have re-mapped ALL the key events, for example:
KEYCODE_DPAD_UP to KEYCODE_I (because I dont want to use the DPAD or
the trackball). But I still need to first hit the track ball before I
could use the new keys. Why doesn't the onKeyDown() event get
triggered when the program first load up? What does the trackball do
to wake up the program?

Insights?

--~--~---------~--~----~------------~-------~--~----~ You received this 
message because you are subs...


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to