Game Development Reference
In-Depth Information
The default directory contains subdirectories for each of our selected deployment
platforms, and each of these will contain a release directory since it was the release
build that we created the deployments from. Note that it is also possible to deploy a
debug build, which can be useful when debugging. Go into the release folder and
there you will find our freshly made deployment package.
All that is left to do now is to install and run it on a device.
Installing on Android devices
Let's start by looking at how to install an Android build.
Before being able to make an Android deployment with the deployment
tool, there is a prerequisite that the Java JDK must be installed. You can
download this from the following web page:
http://www.oracle.com/technetwork/java/javase/
downloads/index.html
The Android package file for the "Hello World" project is called Hello.apk , and to
install it we first need to copy it to an Android device. This can be done by copying
the file to an SD card, or if your device has built-in storage memory, copying the file
into that.
Before we can install our package, we first need to make sure that the Android
device will allow us to do so. Go into your device's Settings program and select the
Applications option. Here there is an Unknown sources option, which allows us to
install our own packages. Make sure this option is ticked.
Next find the file manager application on your device. Different devices may have
different names for this application, but it often has an icon with a picture of a filing
cabinet folder on it. Navigate the directories to find the location where you copied
the Hello.apk file, then tap on the file's entry in the list.
The screen will change to show a big list of things that the application is asking to
access, along with the Install and Cancel buttons. Click on the Install button and
the package will be installed. You can then choose the Open button to start your
application, or the Done button if you don't want to run it now. Click on Open and
we should then be greeted with our Hello Android! message.
By installing the Android SDK, it is also possible to speed up testing on
the device by allowing the deployment tool to automatically package,
install, and run the deployed package. Instructions on setting up the
Android SDK so this will work can be found in Chapter 10 , Extending
Marmalade with the Extensions Development Kit (EDK) of this topic.
 
Search WWH ::




Custom Search