The app works fine if I wait a bit after clicking play, but if I want click on anything clickable right away, the app crashes. Here is the error message: Here is my GameView class: Answer The call stack tells you that in the method Joystick.getIsPressed you are trying to convert a Boolean object to a boolean by invoking booleanValue()