• $10 Game Dev' Courses - Use code "BREAKTHRU"

    Video courses

Unity Pro Development A to Z – Build 10 Android/iOS Games

The Complete Android & Java Developer Course – Build 21 Apps

The Complete Java Developer Course. Learn Step by Step

If you have just completed the tutorial Building your first Android game or if you have just forgotten how to get your latest project from your PC and onto a device – here is how to do it.

  • Learning java by building Android games

    Learning Java by Building Android Games

    Want to learn Java for Android? Even if you are completely new to either Java, Android, or game programming but are aiming to publish Android games, then this book is for you. This book also acts as a refresher for those who already have experience in Java on other platforms or other object-oriented languages.
    • Setup your own Android game programming environment using Android Studio
    • Control logic, branch your code, and add real decision-making depth to your games
    • Design and use 2d sprite animations, smooth pixel graphics, sound FX, simple collision detection and artificial intelligence (AI)
    • Build around a dozen sample test apps and 4 complete working games!
    Amazon USA
    Amazon UK
    Amazon CA
    Our Store (US only)

    Android Game Programming by Example

    Learn to build exciting Android game projects. Build a simple flappy-bird like game to a multi-environment, tough, retro platformer then an OpenGL ES 2 Asteroids clone, running at hundreds of frames per second .
    • Animate your characters with sprite sheets, add multiple scrolling parallax backgrounds, and implement genuinely tough, playable levels in your games
    • Every single line of code is printed in the book! No need to refer to the code files while trying to follow along. All the code files are also supplied separately so you can refer to them in their completed form and copy/paste them into your project if you like.
    • Implement a multitude of other game features such as pickups, firing weapons, HUD’s, generating and playing sound FX, scenery, level transition, high scores, and more
    Amazon USA
    Amazon UK
    Amazon CA
    Our Store (US Only)

About this project

Skill level 1
Time to complete 10 minutes

New concepts

  • Building an Android project

Recommended preparation tutorials

Assumed previous experience

This tutorial will show you how to run the game on your device while connected via a USB cable. Once you have done this  the game will remain on your device to play, with or without being connected to your development machine.

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 to others. But the following sequence is probably very close, if not exact for enabling debugging on most devices.

  1. Tap the Settings menu option or the Settings app on your phone/tablet.
  2. Tap Developer options.
  3. Tap the checkbox for USB Debugging.
  4. Connect your Android device to the USB port of your development system.
  5. Click the Play icon from the Android Studio toolbar as shown.


When prompted click OK to debug the game on your chosen device.

The game will now run on the device like shown.

deploying-your first-android-game

As we progress through the tutorial related mini-projects we will see how the device outputs information to Android Studio so we can monitor and debug our games.

Please visit the Android category of our game coding bookstore for beginners