How to select the device to install app to with the default ant build.xml generated by "android create project"? -


i've run:

android create project \     --target 1 \     --name myname \     --path . \     --activity myactivity \     --package com.cirosantilli.android_cheat 

which generated build.xml. if run:

adb debug install 

with multiple devices available, fails with:

[exec] error: more 1 device/emulator 

so how set correct device?

i know adb need -s:

adb devices -l adb -s emulator-5554 installd my.apk 

and know generated .apk located, cleaner if default build.xml, knows location of .apk.

it possible pass arguments adb as:

ant -dadb.device.arg='-s emulator-5554' installd 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -