install and run an app on multiple devices with a single click under eclipse

前端 未结 5 1388
无人及你
无人及你 2021-02-12 14:43

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

5条回答
  •  抹茶落季
    2021-02-12 15:10

    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:

    • Ctl-Shift-S to save all,
    • Alt-TAB to get to the command prompt,
    • up arrow enter to rerun the script.
    • Enjoy. 5 seconds tops ;)

提交回复
热议问题