Switching from SurfaceView to a regular view

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Switching from SurfaceView to a regular view

Postby ameetnsharma » Thu Dec 17, 2009 11:33 pm

The game starts out with a normal view created from an xml file... it's a menu screen... then clicking on a button starts up a SurfaceView for the main gameplay... when I die in the game, I'd like to set up the normal view again...

here's how I'm trying to do it:

if(gameDeath) {

This is inside the run method of the thread that's working with the SurfaceView...

but nothing happens... it stays stuck on the SurfaceView...

I'm calling surfaceDestroyed, because I assume that's the correct way to stop the thread...

Appreciate any help. Thanks.
Posts: 30
Joined: Tue Dec 08, 2009 10:55 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests