Android

This guide explains the process involved in creating projects when using Tier 2 for the Android platform. As the requirement is for Android 2.3.3 and above, you are able to code in native C/C++, rather than Java. Please note this guide focuses on the process for targeting Android on Microsoft Windows.

You will need to download the following files and packages. This assumes you have a 64-bit computer, if you have a 32-bit computer then download the 32-bit (x86) versions instead.

Java JDK

Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download the latest version of the JDK. Click the download button next to the JDK, accept the license, and download the Windows x64 package. Once the download is complete proceed to install the software.

Android NDK

Go to https://developer.android.com/ndk/downloads/index.html and download the 64-bit package for Windows. Install these files to a location that does not contain spaces e.g. d:\AGKSTUDIO\NDK is acceptable whereas d:\my software\AGKSTUDIO\NDK is not.

Android Studio

Go to http://developer.android.com/sdk/index.html and download the latest version of Android Studio for your platform. Once downloaded run the installer and follow the on screen prompts.

Note that the AGK Tier 2 files must be installed in a path with no spaces, otherwise the NDK will fail to compile the necessary files.

Running Android Studio

Launch Android Studio and follow these instructions -

Running on a device

The following steps will show you how to setup your device for testing your apps. Connect your Android device (your phone or tablet) to your PC by USB and turn on USB Debugging in Android's settings. To turn on USB Debugging:

More detailed instructions on USB Debugging and how to install the USB debug driver vary by device, and are outside the scope of this guide, but there are plenty of tutorials online. You will also need to enable the Unknown Sources option in the security section so that apps can be installed that have not been downloaded through Google Play.

Once your device is setup to receive debug apps you can click the Run icon in Android Studio and it should automatically detect your connected device and upload your newly compiled app to it.

Creating a new project

The following steps will show you how to set up a new project. Once you've completed all the preparation sections of this guide, this is where you should start from each time you want to make a new project.