This isn't an intrinsic problem -- apps like YouTube have a surface view and
show the menu fine.  And there isn't enough information here to provide much
help.

On Tue, Jul 7, 2009 at 8:39 AM, djauto23 <[email protected]> wrote:

>
> I'm making a game which uses a SurfaceView to display the main
> graphics. I want to use the button labelled "MENU" in the emulator,
> and I have implemented onCreateOptionsMenu(Menu menu) in the
> Activity.
>
> Trouble is, the MENU button isn't working. Only if I first press and
> hold Home, then select my game, will the MENU button display the menu
> as expected. Also, if the first time after that I press one of the
> arrow keys (19-22), it will not respond, and the MENU button stops
> working again. The second time an arrow key is pressed it will respond
> as usual.
>
> It seems like the SurfaceView is "detaining" focus, so once catched,
> it won't give it back to whatever listens to the MENU button.
>
> Any ideas as to what might be causing this? I've set setFocusable
> (true) and setFocusableInTouchMode(true) in the SurfaceView, the last
> one causing the MENU button to not work at all.
>
> Thanks for any suggestions.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
-~----------~----~----~----~------~----~------~--~---

Reply via email to