java - Switching between Scene and Activity -


i developing game using andengine scenemanager manage various scenes. in 1 scene have button passes control class extends activity (not scene) , uses xml file layout.

my problem in activity have button. clicking on button should open scene. using following syntax open scene doesn't anything.

scenemanager.getinstance().loadprelevel(engine, "levelfail"); 

where scenemanager scenemanager class , loadprelevel method use open activate loading scene , line of code works everywhere else in game.

does know how open scene activity's subclass.

first of all, game structure not @ all. it's better keep 1 activity initialize game start , rest of scene extends scene including splash!

i suggest this article clearing concept activity versus scene.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -