ADT installApp commandThe -installApp command installs an app on a device or emulator. You must uninstall an existing app before reinstalling with this command. The command uses the following syntax: adt -installApp -platform platformName -platformsdk path-to-sdk -device deviceID -package fileName -platform The name of the platform of the device. Currently this command is only supported on the Android platform. Use the name, android. -platformsdk The path to the SDK for the target device. This value does not need to be supplied on the command line if the AIR_ANDROID_SDK_HOME environment variable is set. (If both are set, then the path provided on the command line is used.) -device The serial number of the device. The device only needs to be specified when more than one device or emulator is attached to your computer and running. If the specified device is not connected, ADT returns exit code 14: Device error. If more than one device or emulator is connected and a device is not specified, ADT returns exit code 2: Usage error. On Android, use the Android ADB tool to list the serial numbers of attached devices and running emulators: adb devices -package The file name of the package to install. On Android, this must be an APK package. If the specified package is already installed, ADT returns error code 14:Device error. |
|