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, 涛 涂 <ttgdztu...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to