安装和使用eclipse下一次点击运行在多种设备上的应用程序 [英] install and run an app on multiple devices with a single click under eclipse

查看:125
本文介绍了安装和使用eclipse下一次点击运行在多种设备上的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法来安装和运行在多种设备上的Andr​​oid应用程序/仿真器与Eclipse下一个单一的点击。

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.

当我在多个测试布局(n)的设备,我现在在做n次运行方式(CTRL-F11捷径其实),选择正确的设备,然后检查我的布局,每个设备上。

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.

做了这样的事情存在?

推荐答案

最简单的方法是有一个批处理文件(或shell脚本)的几行

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

确认了Eclipse被设置为自动生成该项目。然后,这不是一次点击,但接近:

Make sure that Eclipse is set to build the project automatically. Then, it's not one-click, but close:

  • CTL-Shift-S键保存所有,
  • 使用Alt-Tab去命令提示符
  • 向上箭头进入重新运行该脚本。
  • 享受。 5秒上衣;)

这篇关于安装和使用eclipse下一次点击运行在多种设备上的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆