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

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

问题描述

我有安卓设备,我如何运行与我的系统连接的应用程序,而不是在模拟器中运行.

解决方案

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

http://developer.android.com/guide/developing/device.html>

然后adb应该优先使用硬件设备而不是模拟器.

http://developer.android.com/guide/developing/building/building-eclipse.html

<块引用>

自动和手动目标模式

默认情况下,运行配置使用自动目标模式,以便选择一个 AVD.在此模式下,ADT 将为应用程序选择一个 AVD以下方式:

1) 如果有一个设备或模拟器已经在运行并且它的 AVD配置符合要求应用程序的构建目标,应用程序已安装并运行

2) 如果有多个设备或模拟器在运行,每个都满足构建目标的要求,显示设备选择器"让您选择要使用的设备.

3) 如果没有运行的设备或模拟器满足构建目标的要求,ADT查看可用的 AVD.如果有是与构建匹配的 AVD项目目标,ADT选择那个AVD.如果 AVD 版本是比构建目标更新项目,ADT 选择最老的满足的 AVD 的可能版本项目的构建目标要求.

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

但是,如果首选 AVD"是在运行配置中选择,那么应用程序将永远是部署到该 AVD.如果不是已经在运行,然后是一个新的模拟器将推出.

如果您的运行配置使用手动模式,那么设备选择器"是每次展示您的应用程序运行,以便您可以选择要使用的 AVD.

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

解决方案

Connect your device via USB to your computer:

http://developer.android.com/guide/developing/device.html

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

http://developer.android.com/guide/developing/building/building-eclipse.html

Automatic and manual target modes

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) 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) 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) 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) 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.

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.

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.

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

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