I am wondering if there is a way to install and run an android application on multiple devices/emulator with a single click under Eclipse.
When I am testing a layout on multiple (n) devices I am doing right now n times run-as (ctrl-F11 short cut in fact), choose the correct device and then check my layout on each device.
It would be great to use a single command to install and launch on all devices connected to my computer.
Does a such thing exist?
If you using eclipse, just do below:
another dialog should pop up, select 'target' tab, select 'Launch on all compatible devics/AVD's '.
Apply and you should get all of devices install when Run/Debug.
The simplest way is to have a batch file (or shell script) with several lines
adb -s SERIAL_NO install workspace/YOUR_PROJECT/bin/YOUR_APK.apk
Make sure that Eclipse is set to build the project automatically. Then, it's not one-click, but close:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With