Android Tutorials - Herong's Tutorial Examples - Version 3.02, by Dr. Herong Yang
Installing the Debug Binary Package
This section provides a tutorial example on how to install the debug binary package to the Android emulator using the Apache Ant tool and the build file.
Now I need to install the debug build, HelloAndroid-debug-unaligned.apk, on the Android emulator. The Android documentation does not have detailed instructions on this step. But I did the following steps to make it happen:
1. Run the Android emulator, vTablet, through the AVD Manager and wait for the emulator to be fully booted.
2. Install HelloAndroid-debug-unaligned.apk to the Android emulator using the Ant tool:
C:\>cd \herong\HelloAndroid C:\herong\HelloAndroid>\local\apache-ant-1.9.5\bin\ant installd -set-mode-check: -set-debug-files: install: [echo] Installing C:\herong\HelloAndroid\bin\HelloAndroid-debug.apk onto default emulator or device... [exec] * daemon not running. starting it now on port 5037 * [exec] * daemon started successfully * [exec] pkg: /data/local/tmp/HelloAndroid-debug.apk [exec] Success [exec] 385 KB/s (37850 bytes in 0.096s) installd: BUILD SUCCESSFUL Total time: 12 seconds
3. Go to Android emulator, and click the "Apps" icon. The "HelloAndroid" application is listed on the screen!
Last update: 2015.
Table of Contents