gpt4 book ai didi

android - 如何在设备中运行 android 应用程序?

转载 作者:可可西里 更新时间:2023-11-01 19:06:16 25 4
gpt4 key购买 nike

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

最佳答案

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

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

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

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 - 如何在设备中运行 android 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5819195/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com