Surfaceholder.lockcanvas() Returning Null
I'm making a game, and since I'm new to Android, I based the design off of the example LunarLander code. In its design, GameThread.doStart() is called from GameActivity, and the th
Solution 1:
You are starting a thred in activity on create, while it should be started only when the SurfaceView is created and ready. Check this the second, the SurfaceView example: How can I use the animation framework inside the canvas?
Post a Comment for "Surfaceholder.lockcanvas() Returning Null"