Installing Application to Tablet using "ant installd"

This section provides a tutorial example on how to install the debug package of my 'HelloAndroid' application to my Samsung mini tablet using the 'ant installd' command through the USB debugging interface.

I think I am ready try to install my own applications on my Samsung mini tablet and debug/test them.

Let's try to install the "HelloAndroid" debug package to my tablet first using the "ant installd" command. See previous tutorials on how to build the debug package.

You may need to shutdown the Android emulator to run "ant installd", because it can not support 2 connected Android devices.

C:\herong\HelloAndroid>\local\apache-ant-1.8.3\bin\ant installd

Buildfile: C:\herong\HelloAndroid\build.xml



     [echo] Installing C:\herong\HelloAndroid\bin\HelloAndr
oid-debug.apk onto default emulator or device...
     [exec]     pkg: /data/local/tmp/HelloAndroid-debug.apk
     [exec] Success
     [exec] 812 KB/s (14980 bytes in 0.018s)


Total time: 6 seconds

It works! "ant installd" installed my debug package of "HelloAndroid" to my mini tablet through the USB debugging interface.

To verify, go to the tablet and tap on "Applications". You will see "HelloAndroid" listed and ready to run.

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

 AboutAndroid - Application to Retrieve System Information 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

 Samsung USB Driver for Mobile Phones

 Turning on USB Debugging on Samsung Galaxy Tab 3

 Running "adb" on USB Debugging Interface

Installing Application to Tablet using "ant installd"

 Installing Application to Tablet using "adb -d install"

 Installing "AboutAndroid" to Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Archived Tutorials


 Full Version in PDF/EPUB