onOptionsItemSelected restarts engine?

  ... in the unlikely case you discovered a bug, post it here.

onOptionsItemSelected restarts engine?

Postby merwin2 » Wed Oct 26, 2011 3:33 am

Hey everyone,

I'm not exactly sure what is going on, but it appears as if the engine is restarting after a menu item is selected.

First the symptom: I press the menu button and press our "new game" menu option. All this does is reset a value and redisplay it. Well it takes about 5 seconds for the value to be redisplayed.

I checked out the logs and it appears that after my newGame() method is run, AndEngine prints an "onSurfaceCreated" message to LogCat... this seems bad.

To be clear, I have an onOptionsItemSelected method in my main Activity that is calling a newGame() method in my main scene.

Thanks,
Matt
merwin2
 
Posts: 15
Joined: Thu Jan 27, 2011 5:55 pm

Re: onOptionsItemSelected restarts engine?

Postby anuragdalia » Sat Apr 06, 2013 6:25 pm

seems like i am facing the same problem .. did you find the solution ?if yes please share

regards
anurag
Andengine GLES 2.0
Devices:
Sony Xperia U
HTC Wildfire S
Samsung Galaxy S2
Samsung Galaxy Y
anuragdalia
 
Posts: 6
Joined: Tue Sep 04, 2012 6:35 pm
Location: LocalHost,INDIA


Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests