简体   繁体   English

在Android模拟器上打开Web浏览器

[英]Open the web browser on Android emulator

I just installed the Android SDK on my Windows 7 64-bit. 我刚刚在Windows 7 64位上安装了Android SDK I'm creating a web app, so all I'd like to do is open the Android web browser. 我正在创建一个网络应用程序,所以我想做的就是打开Android网络浏览器。 I double clicked on tools/emulator.exe , but all it did was flash a CMD box on the screen for a split second. 我双击了tools / emulator.exe ,但它所做的就是在屏幕上闪烁一小段时间。 I proceeded to read the documentation . 我继续阅读文档 It says I have to type this command in CMD to open the emulator: 它说我必须在CMD中键入此命令才能打开模拟器:

emulator -avd <avd_name>

What exactly do I put in <avd_name> to open the web browser? 我究竟应该在<avd_name>放置什么来打开Web浏览器?

First you must create an AVD (Android Virtual Device). 首先,您必须创建AVD(Android虚拟设备)。 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. 模拟器启动后,您只需单击Web浏览器的图标即可启动它。

To create an AVD, I'd recommend using Eclipse and Android development tools for Eclipse; 要创建AVD,我建议使用Eclipse的Eclipse和Android开发工具; it's easier than using command line if you're just beginning Android development. 如果你刚刚开始Android开发,它比使用命令行更容易。

这与您的应用程序无关:您首先使用AVD和SDK管理器创建AVD,由android-sdk-dir \\ tools \\ android.bat发布

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. AVD表示模拟器的名称,它与您要运行的应用程序无关,如果您使用的是eclipse,请执行以下步骤:运行,选择运行配置>>选择您的项目>>转到目标>>在这里你可以根据你的需要选择特定的Android设备>>点击运行。 i think that will solve your problem. 我认为这将解决你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM