Windows 中的 Android 浏览器

发布于 2024-12-28 09:53:05 字数 122 浏览 3 评论 0原文

有没有办法在widows中安装Android SDK Web浏览器的Web套件引擎并将其自定义为直接在Windows环境中运行?

这样我们就不需要依赖模拟器/设备来检查您的网页在其中的工作方式 - 这会更简单、更快

Is there a way to install the Android SDK Web Browser's web kit engine in widows and customize it to Run in your windows environment directly ?

So that we dont need to depend upon the Emulator/ device to check how your Web page works in it - which would be simpler and faster

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

美人迟暮 2025-01-04 09:53:05

您可以在 Google Chrome 中模拟一些 Android 浏览器功能。输入Ctrl-Shift-I打开Chrome开发者工具,点击设置 - 右下角的齿轮图标,点击左侧的覆盖,然后选中用户代理并选择下面的Android 4.0.2,接下来选中设备指标模拟触摸事件。更多信息请参见此处

或者,您可以安装 Windroy - Android 到 Windows 的完整移植版本。

You can emulate some Android browser features in Google Chrome. Type Ctrl-Shift-I to open Chrome Developer Tools, click Settings - the gear icon in bottom right corner, click Overrides on the left, then check User Agent and select Android 4.0.2 below, next check Device Metrics and Emulate touch events. More info here.

Alternatively, you can install Windroy - a full port of Android to Windows.

爱情眠于流年 2025-01-04 09:53:05

现在在 Chrome 上(版本 53 时),设备模式可以让您接近真实的设备行为(但不能完全模拟它)。要启动它:

  • 输入 Ctrl-Shift-I 打开 Chrome 开发者工具,
  • 然后输入 Ctrl-Shift-M 在设备模式下切换,
  • 页面顶部会出现一个工具栏,其中包含一个下拉菜单,您可以从中模拟不同的移动浏览器(菜单的默认选项是“响应式”)。

可以在“开发人员工具设置”>“开发人员工具”中扩充可用设备的列表。设备。

Now on Chrome (at the time of version 53), Device Mode allows to get you close to the real device behaviour (yet not emulating it fully). To launch it:

  • type Ctrl-Shift-I to open Chrome Developer Tools,
  • then type Ctrl-Shift-M to toggle in device mode,
  • a toolbar appears on top of your page with a dropdown menu from which you can emulate different mobile browsers (default option of the menu is "Responsive").

This list of available devices can be augmented in the Developer Tools settings > Devices.

雪落纷纷 2025-01-04 09:53:05

到目前为止,我发现的最好方法是将我的移动设备连接到 Chrome 的远程设备功能

Chrome 远程设备


  1. 打开 Android 上的“开发者选项”屏幕。
  2. 选择启用 USB 调试。
  3. 在您的开发计算机上,打开 Chrome。
  4. 打开开发工具。
  5. 在 DevTools 中,单击主菜单 Main Menu,然后选择更多工具 >远程设备。
  6. 您需要在移动设备中打开 Chrome,您将看到一个包含所有打开的选项卡的列表,

这太棒了,因为您不仅可以直接在计算机中浏览移动设备的选项卡,而且可以正常调试您的应用程序,就像您一样在 Chrome 桌面上进行调试(元素、控制台、源、网络、性能、应用程序、安全性等)。
请查看此处的远程调试疑难解答部分

The best way I've found until now, it's to connect my mobile device with Chrome's Remote Devices feature

Chrome Remote Device


  1. Open the Developer Options screen on your Android.
  2. Select Enable USB Debugging.
  3. On your development machine, open Chrome.
  4. Open DevTools.
  5. In DevTools, click the Main Menu Main Menu then select More tools > Remote devices.
  6. You need to have Chrome open in your Mobile Device, you will see a list with all opened tabs

This is awesome, because, not only you can browse your mobile's tabs directly in your Machine, but you can normally debug your app, like you are debugging on Chrome Desktop (Elements, Console, Sources, Network, Performance, Application, Security, etc).
Check remote debugging troubleshooting section over here

唱一曲作罢 2025-01-04 09:53:05

我认为这是不可能的,因为浏览器是为在 Android 堆栈上运行而构建的。

I dont think that is possible as the browser is built to run on the Android stack.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文