I am continuing to have problems with scene removal using both composer and storyboard. At a very simple level, I have two scenes “menu” and “game”.
Within the scene:show() function of both scenes under the “did” phase, I am calling “composer.removeHidden()” which should remove all other scenes apart from the current scene.
On the emulator, this behaves perfectly so performing the following “menu->game->menu->game” results in the scene:create() firing the second time the game scene is loaded (and re-initialising the game).
However, when I install on an Android device (Nexus 7 with Android 4.4), it appears that the scenes are not being destroyed meaning that the second time the game scene is loaded, it returns to the same point where the game scene was last exited.
I have tried replacing composer.removeHidden() with composer.removeScene(“game”) within the menu and also adding debug print statements around the composer entries to verify via logcat that the functions are indeed firing.
Has anyone else seen similar behaviour?