Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Switching from SurfaceView to a regular view

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) {
_panel.surfaceDestroyed(_surfaceHolder);
setContentView(menuLayout);
}

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.
ameetnsharma
Developer
Developer
 
Posts: 30
Joined: Tue Dec 08, 2009 10:55 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests