Android Studio – Can I switch activities from a SurfaceView?
I am trying to adapt a snake game in Android Studio so that game over triggers a GameOverActivity. The problem is that the game over text is currently written to the screen in the redrawCanvas() function: public void redrawCanvas(Canvas canvas)…