I've have an interface that allows me to switch between different scenes in my Android game. When the home key is pressed, I am saving all of my states (score, sprite positions etc) into a Bundle. When re-launching, I am restoring all my states and all is OK - however, I can't figure out how to save my 'Scene', thus when I return, it always starts at the default screen which is the 'Main Menu'.

Hi @SeanMiddleditch - thanks for this, I don't quite understand how this works, what exacly is ESceneType? I can currently get my scene type by doing the following: SceneManager.getInstance().getCurrentScene(); I'm don't quite understand how this can be used to save / recall the Scene - could you elaborate please? Thanks!
–
user22241Jun 26 '13 at 17:51

"a simple enumeration" - just make an easy to serialize piece of data to identify your scenes and then reconstruct them when loading. I'm assuming your getCurrentScene return an instance of a Scene derived type, not an identifier for the scene. You have to make your own enumeration or string types here, or utilize Java's introspection APIs. If you need any extra per-scene data you'll need to serialize that yourself, too. How to do that is more of a basic programming/Java query not specific to game development.
–
Sean MiddleditchJun 26 '13 at 18:00

I actually went for a similar but simpler form of this in the end, I held an simple int value and changed it when I changed the scene, then just saved that to / restored from the Bundle and switched it to set the current scene - simple :-)
–
user22241Sep 19 '14 at 18:10