Deploying the game
Now, we can run our game to see our spaceship floating through space (starting at 50 pixels on the x axis and 50 pixels on the y axis).
Android Studio enables us to fairly quickly create emulators, on which we can test our games on a development PC. However, even the most simple of games will not run well on an emulator. When we start testing things like player input, the experience is so awful that it is best to avoid using emulators completely.
The solution is to carry out debugging on a real Android device. It is very easy to prepare for this.
Debugging on an Android device
The first thing to do is to visit your device manufacturer's website and obtain and install any drivers that are required for your device and operating system.
The next few steps will setup the Android device for debugging. Note that different manufacturers structure the menu options slightly differently than others. The following sequence is probably very close, if not exact to enable debugging...