Installing Kilo Gap on Your Phone

If you have an actual Android device at your disposal, you can install Kilo on it directly. The instructions for doing so are similar to the steps for the emulator installation:

1. Plug your phone in to the USB port on your laptop.

2. Enable debugging on your phone by navigating to Settings^Applications^ Development and enabling the USB Debugging option.

3. Open a terminal window and navigate into the KiloGap directory. In my case, the command to do so is:

cd ~/Desktop/KiloGap

4. If you haven't compiled it already, enter the following command in a terminal window to compile your app with debugging enabled:

ant debug

If all goes well, you'll see a stream of output with BUILD SUCCESSFUL at the end. A binary executable named Kilo-debug.apk will now be sitting in the ~/Desktop/Kil-oGap/bin directory. If the build is not successful, repeat the steps in "Build KiloGap" on page 118.

5. Now that we have a binary, we can install it on the phone. To do so, enter the following command:

adb -d install -r bin/Kilo-debug.apk

The -d flag tells adb to install our binary package (i.e., bin/Kilo-debug.apk) on the first connected device it finds.

Your app is now available on the phone just like any other application. To play around with it, locate Kilo in the application list and tap the icon to launch it.

+2 -1

Post a comment