Take the tour ×  I am trying to create a simple game using the
Android SDK without using AndEngine (or any other game engine).
I have plenty of experience designing games from the past, but
I'm having lots of trouble trying to use the Android SDK to make
my game. By far my biggest hurdle right now is switching between
views. That is, for example, going from the menu to the first
level, etc.  I am using a traditional model I learned (I think
it's called a scene stack or something?) in which you push the
current scene onto a stack and the game's main loop runs the top
item of the stack. This model seems non-trivial to implement in
the Android SDK, mostly because Android seems to be picky about
which thread instantiates which view. My issue is that I want
the first level to show up when you press a button on the main
menu, but when I instantiate the first level (the level class
extends SurfaceView and implements SurfaceHolder.Callback) I get
a runtime error complaining that the thread that runs the main
menu can