Testing the Signed Application Package

If there is only one device or emulator, this command works. However, if you have multiple devices and emulators floating around, you need to direct the installation command to a specific one. You can use the devices command of the adb utility to query for devices connected to your computer: adb devices

The list this command returns includes any emulators or handsets attached to the computer. The results might look like this:

$ adb devices List of devices attached emulator-5554 device HT9CSP801234 device

You can then target a specific device on which to install the application package file by using the -s option. For example, to install the BeenThereDoneThat.apk application package file on the emulator, you use the following: adb -s emulator-5554 install BeenThereDoneThat.apk

For more information about the adb command-line tool, see the website http://developer.android.com/guide/developing/tools/adb.html.

0 0

Post a comment