Refactoring MainActivity to SnakeActivity
As in previous projects, MainActivity is a bit vague, so let's refactor MainActivity to SnakeActivity.
In the project panel, right-click the MainActivity file and select Refactor | Rename. In the pop-up window, change MainActivity to SnakeActivity. Leave all the other options at the defaults and left-click the Refactor button.
Notice the filename in the project panel has changed as expected but also multiple occurrences of MainActivity have been changed to SnakeActivity in the AndroidManifest.xml file, as well as an instance in the SnakeActivity.java file.
Let's put the device into landscape orientation.