Game Development Reference
In-Depth Information
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
The second ile is
App1/build.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<project name="App1" default="help">
<property file="ant.properties" />
<loadproperties srcFile="project.properties" />
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
How it works...
With all the listed iles in place, we can now build the project and install it on an Android
device by carrying out the following steps:
1.
From the
App1
folder run:
>ant debug
2.
The tail of the output from the previous command should look like:
BUILD SUCCESSFUL
Total time: 12 seconds
3.
And the built debug
.apk
package is in
bin/App1-debug.apk
.
4.
To install the app, run:
>adb install App1-debug.apk
Don't forget to connect your device through a USB and turn USB
Debugging on in Android settings before running this command.
5.
You should see the output from
adb
, similar to the following commands:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1256 KB/s (8795 bytes in 0.006s)
pkg: /data/local/tmp/App1-debug.apk
Success