windows 在 Android 模拟器上打开网络浏览器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5586495/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Open the web browser on Android emulator
提问by JoJo
I just installed the Android SDKon my Windows 7 64-bit. I'm creating a web app, so all I'd like to do is open the Android web browser. I double clicked on tools/emulator.exe, but all it did was flash a CMD box on the screen for a split second. I proceeded to read the documentation. It says I have to type this command in CMD to open the emulator:
我刚刚在我的 Windows 7 64 位上安装了Android SDK。我正在创建一个网络应用程序,所以我想做的就是打开 Android 网络浏览器。我双击了tools/emulator.exe,但它所做的只是在屏幕上闪现一个 CMD 框一瞬间。我继续阅读文档。它说我必须在 CMD 中输入这个命令才能打开模拟器:
emulator -avd <avd_name>
What exactly do I put in <avd_name>
to open the web browser?
我究竟要输入什么<avd_name>
才能打开网络浏览器?
回答by darioo
First you must create an AVD (Android Virtual Device). How to do that, find out here. Afterwards, you can start it using the command you provided. When the emulator has started, you can simply click on web browser's icon to start it.
首先,您必须创建一个 AVD(Android 虚拟设备)。如何做到这一点,请在此处了解。之后,您可以使用您提供的命令启动它。模拟器启动后,您只需单击 Web 浏览器的图标即可启动它。
To create an AVD, I'd recommend using Eclipse and Android development tools for Eclipse; it's easier than using command line if you're just beginning Android development.
要创建 AVD,我建议使用 Eclipse 和 Android 开发工具为 Eclipse;如果您刚刚开始 Android 开发,它比使用命令行更容易。
回答by olamotte
this has nothing to do with your app : you ave to create an AVD first, by using the AVD & SDK Manager, lauched by android-sdk-dir\tools\android.bat
这与您的应用程序无关:您必须首先使用 AVD 和 SDK 管理器创建一个 AVD,由 android-sdk-dir\tools\android.bat 启动
回答by Seeker
AVD represents the name of the emulator and it has nothing to do with the application that you want to run, follow this procedure if you are using eclipse : go to run, select run configuration>>select your project>>go to target>> here you can select the specific android device according to your needs >> hit run. i think that will solve your problem.
AVD 代表模拟器的名称,它与您要运行的应用程序无关,如果您使用的是 eclipse,请按照以下步骤操作:转到运行,选择运行配置>>选择您的项目>>转到目标>>在这里您可以根据需要选择特定的 android 设备 >> 点击运行。我认为这将解决您的问题。