You've got the android sdk on hand? Look at the source code of the
sample game called "LunarLander" would help.

On Jan 18, 3:42 pm, 涛 涂 <[email protected]> wrote:
>   I am a new one to android,and I am trying to do a small game such as
> Tetris,I use android graphics 2d api,I have a problem,I want to deal
> with the keyEvent,but I cannot receive any keyEvent when I press the
> key in my custom view,but it does in my activity when I override
> onKeyDown method,I tried to call requestFocus and setFocusable ,but it
> didn't work,anybody can give me the solution?Thanks.

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