Outdated: 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.

This tutorial was based on Android SDK R17 with Android 4.0.3 and left here as a reference.

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 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.8.3\bin\ant installd
Buildfile: C:\herong\HelloAndroid\build.xml

-set-mode-check:

-set-debug-files:

install:
     [echo] Installing C:\herong\HelloAndroid\bin\HelloAndroid-debug
               .apk onto default emulator or device...
     [exec]     pkg: /data/local/tmp/HelloAndroid-debug.apk
     [exec] Success
     [exec] 46 KB/s (14237 bytes in 0.298s)

installd:

BUILD SUCCESSFUL
Total time: 6 seconds

3. Go to Android emulator and click the "Applications" icon. The "HelloAndroid" application is listed in the application list!
HelloAndroid Application Installation

Last update: 2012.

Table of Contents

 About This Book

 Installing JDK 1.8 on Windows System

 Installation of Android SDK R24 and Emulator

 Installing Apache Ant 1.9 on Windows System

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

 Android Debug Bridge (adb) Tool

 Android File Systems

 Android 4.0.3 File Systems

 AboutAndroid - Application to Retrieve System Information

 android.app.Activity Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

Outdated Tutorials

 Outdated: Downloading and Installing JDK 1.7

 Outdated: Downloading and Installing Android SDK R17

 Outdated: Running Android SDK Manager

 Outdated: Installing Android Platform 4.0.3 and Libraries

 Outdated: Verifying Android Platform Installation

 Outdated: Creating Android Virtual Device (AVD)

 Outdated: Launching Android Emulator in AVD Manager

 Outdated: Android Emulator Built-in Applications

 Outdated: Android Emulator Built-in Web Browser

 Outdated: Downloading and Installing Apache Ant 1.8

 Outdated: "HelloAndroid" - First Android Project

 Outdated: Building the Debug Binary Package

Outdated: Installing the Debug Binary Package

 Outdated: Running the Debug Binary Package

 Outdated: Rebuild the Debug Binary Package

 Outdated: Redefine Text in Resource Files

 Outdated: Installing Android PDF Viewer APK File

 Outdated: Copy PDF File to Android Emulator's File System

 Outdated: Installing Adobe Reader APK File

 Outdated: "adb shell" - Remote Shell Interface

 Outdated: "adb push" and "adb pull" Commands

 References

 PDF Printing Version