small medium large xlarge

10 Mar 2014, 19:45
Nick Giannotti (1 post)

On line “ = (Game) context;”

Errors out due to “Cannot cast from Context to Game”

11 Mar 2014, 09:28
Anthony Shaw (138 posts)

I suspect that you have missed the ‘extends Activity’ from the definition of the Game class a couple of pages before. The class Game should be defined

public class Game extends Activity

Check that out, if it is not the problem post the code for your Game and PuzzleView class and I will take a look at them.