surfaceview

Overlay an Android layout on a surfaceview

I am designing a simple Android game using a surfaceview similar to the Lunar Lander sample provided by Google. I want to have various things such as highscores, messages, menus etc pop up on screen with the surface view still in the background. The problem is that I want the "pop ups" to contain many design elements such as images, tex...

How can I end an activity from inside a SurfaceView class or nested thread.

I’m writing an application (game) where I would like to end the game activity when the user fails the game. My game is loosely based off lunarlander, so I figure it may be easier to ask for help using lunarlander as an example, since a lot of folks are familiar with it. When the user fails the lunarlander game, I want to automatically ...

Combining SurfaceView with other Views such as TextView and Buttons

Hi everyone I'm totally new to android programming (just did some tutorials/read the dev guides etc.) and as every newbie I want to do a useless game :-). Currently I'm struggling with the layout of different views. Similar to the example I've made a class which extends a SurfaceView and put that into a FrameLayout. Around this Surface...

Font and images with transparency are distorted

Hello Everybody! I faced with such problem on Huawei U8100 Device If I use SurfaceView component to draw text or images with transparecy, leads to noticeable distortion: AntiAliased text is distorted less than not AA text, but it also very hard to read it. Using of different truetype fonts has same result. All other applications,...

Android emulators not simulating correct density or resolution. Possibly a surfaceview implementation issue.

I’m building a small app that is using a surfaceview class that extends surfaceholder.callback. It is implemented just like the lunarlander example. My problem is that each type of emulator I use (low, medium or high density) doesn’t seem to actually change the density of the screen or the resolution to what I would expect. I recently...

Programming with SurfaceView and thread strategy for game development

Hi, I am using a SurfaceView and a rendering thread to develop a game based on structure like LunarLander. However, I faced many problems, and here I want to point them all out. I wish anyone who want to develop a game won't need to struggle with them anymore. And anyone who have a better idea of the structure can share their experienc...