适用于移动浏览器的Android AVD模拟器开发工具吗? [英] Android AVD Emulator Dev Tools for Mobile Browser?

查看:63
本文介绍了适用于移动浏览器的Android AVD模拟器开发工具吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用移动网络应用程序.我有多种设备正在测试,但我没有一个设备是运行Android 2.3.x的Android设备.我求助于通过Eclipse使用Android AVD模拟器.

I'm working on a mobile web app. I have a variety of devices I'm testing with but one device I do not have is an Android device running Android 2.3.x. I've resorted to using Android AVD emulators via Eclipse.

使用仿真器进行测试很好,但是我的Web应用程序的一些CSS样式在Android 2.3.x Web浏览器中却呈现奇怪的样子.

It's good using the emulator for testing, however a few CSS styles of my web app render strangely in the Android 2.3.x Web Browser.

是否可以使用AVD模拟器中的默认Android浏览器来调试或试验CSS?我不确定是否可以通过某种方式检查和更改浏览器中的CSS,以便找出问题所在(类似于您使用Chrome开发工具或Firebug所做的事情).

Is there any way to debug or experiment with the CSS using the default Android browser in an AVD emulator? I'm not sure if it's possible to somehow examine and alter the CSS in the browser so that I can figure out what the problem is (similar to what you do with Chrome dev tools or Firebug).

我已经读到有一些方法可以使用Android移动版Chrome浏览器,在此版本中,它可以与台式机上的Chrome浏览器连接,然后以这种方式对其进行调试...但是我不确定默认的Android 2.3.x浏览器.

I've read that there is some way to do this using mobile Chrome for Android where it connects with Chrome on your desktop and you debug it that way... But I'm not sure about the default Android 2.3.x Browser.

推荐答案

您可以从台式机上的Chrome连接到仿真的Android设备(例如,从Android Studio启动的AVD),也可以通过USB连接的真实设备(带有USB)启用调试),通过在台式机Chrome浏览器中输入以下网址来运行Chrome:

You can connect from Chrome on your desktop to either an emulated Android device (e.g. an AVD started from Android Studio), or a usb connected real device (with USB debug enabled), running Chrome by typing in the following url into the desktop Chrome browser:

chrome://inspect/#devices

然后它将列出您可以与之交互的所有已连接设备.例如,您可以打开一个特定的网址,然后检查该标签-可以访问Web工具控制台-就像在台式机Chrome上一样.

Then it will list any connected devices you can interact with. e.g you can then get it open a specific url and then inpect that tab - which provides for access to the web tools console - just like on desktop Chrome.

这篇关于适用于移动浏览器的Android AVD模拟器开发工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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