[android-developers] onSingleTapConfirmed and different screen sizes

2010-08-30 Thread djauto23
I am developing a game in which there are a couple of on-screen buttons the user can press to do different things. These work by responding to onSingleTapConfirmed, and checking if the getX and getY of the event are within the coordinates of the buttons. However, the getX and getY coordinates are

[android-developers] SurfaceComposerClient: using an invalid surface id

2010-06-28 Thread djauto23
I'm making a game, using GLSurfaceView, and I keep getting this error message when returning to my game after pressing Home: "using an invalid surface id=[some integer], identity=[some integer], should be [some integer]" Then it takes a few seconds before the GLSurfaceView is drawn again, even if

[android-developers] Re: SurfaceView detaining focus

2009-07-07 Thread djauto23
On Jul 7, 7:07 pm, Dianne Hackborn wrote: > 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. Yes, several other examples I've looked at, including the LunarLander game does this, so

[android-developers] SurfaceView detaining focus

2009-07-07 Thread djauto23
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