如何运行在设备中的Andr​​oid应用程序? [英] how to run the android application in device?

查看:186
本文介绍了如何运行在设备中的Andr​​oid应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Android设备,我怎么可以运行我的系统,而不是在模拟器中运行连接的应用程序。

i have android device, how can i run the application connecting with my system instead running in the emulator.

推荐答案

通过USB连接您的设备连接至计算机:

Connect your device via USB to your computer:

<一个href="http://developer.android.com/guide/developing/device.html">http://developer.android.com/guide/developing/device.html

然后亚行应使用preferentially硬件设备在模拟器。

And then adb should use preferentially the hardware device over the emulator.

<一个href="http://developer.android.com/guide/developing/building/building-eclipse.html">http://developer.android.com/guide/developing/building/building-eclipse.html

自动和手动目标模式

默认情况下,运行配置的用途   在自动目标模式,以   选择一个AVD。在这种模式下,ADT将   选择一个AVD在应用程序   方式如下:

By default, a run configuration uses the automatic target mode in order to select an AVD. In this mode, ADT will select an AVD for the application in the following manner:

1)如果有一个设备或仿真器已经运行和AVD   配置符合要求   该应用程序的构建目标后,   应用程序安装和运行时   吧。

1) If there's a device or emulator already running and its AVD configuration meets the requirements of the application's build target, the application is installed and run upon it.

2)如果有一个以上的设备或仿真器运行,其中每一个满足   构建目标的要求,   设备选择器显示,让你   选择要使用的设备。

2) If there's more than one device or emulator running, each of which meets the requirements of the build target, a "device chooser" is shown to let you select which device to use.

3)如果没有设备或仿真器的运行满足   构建目标,ADT的要求   着眼于可AVDS。如果有   是相匹配的构建AVD   目标的项目,ADT选择   该AVD。如果AVD版本   比的构建目标新   项目,ADT选择了最古老的   符合的AVD可能的版本   该项目的建设目标   要求。

3) If there are no devices or emulators running that meet the requirements of the build target, ADT looks at the available AVDs. If there is an AVD that matches the build target of the project, ADT chooses that AVD. If the AVD versions are newer than the build target of the project, ADT chooses the oldest possible version of an AVD that meets the project's build target requirement.

4)如果没有合适的AVDS,应用程序没有安装一个控制台   错误警告,告诉你,有   没有现有的AVD符合构建   目标要求。

4) If there are no suitable AVDs, the application is not installed a console error warning tells you that there is no existing AVD that meets the build target requirements.

然而,如果一个preferred AVD是   在运行配置中选择,   然后该应用程序总是会   部署到该AVD。如果它不是   已在运行,那么新的模拟器   将陆续推出。

However, if a "preferred AVD" is selected in the run configuration, then the application will always be deployed to that AVD. If it's not already running, then a new emulator will be launched.

如果您运行的配置使用的手动   模式,那么设备选择器是   presented每次你   应用程序运行,这样就可以   选择AVD要使用的。

If your run configuration uses manual mode, then the "device chooser" is presented every time that your application is run, so that you can select which AVD to use.

这篇关于如何运行在设备中的Andr​​oid应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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