Locking the game to full screen and landscape orientation
We want to use every pixel that the player's Android device has to offer, so we will make changes to the AndroidManifest.xml
file. This allows us to use a style for our app that hides all of the default menus and titles from the user interface.
Make sure that the AndroidManifest.xml
file is open in the Editor window. If you followed along with the previous section, then it will be open already.
In the AndroidManifest.xml
file, locate the following line of code:
<android:name=".SubHunter">
Place the cursor before the closing >
character, as shown in the preceding code. Press the Enter key a couple of times to move the >
character a couple of lines below the rest of the line.
Immediately underneath ".SubHunter"
, but before the newly positioned >
, type in or copy and paste this next line of code. This will make the game run without any user interface.
Note that the line...