【问题标题】:My app works fine in android chrome but not in webview which uses default web browser我的应用程序在 android chrome 中运行良好,但在使用默认网络浏览器的 webview 中运行良好
【发布时间】:2016-02-01 18:38:27
【问题描述】:

我编写了一个 webview 应用程序,它可以打开一个 web url。然而,体验就像我在我的三星 S3 手机 (android ver 4.2) 的默认网络浏览器中打开它时一样,非常糟糕(例如无法显示谷歌地图)。有没有办法强制 webview 应用使用其他默认浏览器,例如使用我安装在智能手机中的 Chrome 浏览器?

【问题讨论】:

    标签: android google-chrome android-studio webview android-webview


    【解决方案1】:

    在 Android 4.4 中,WebView 切换为基于 Chromium 项目。在此之前,它是 Android 对 WebKit 的特定实现。在 Android 5.0 中,WebView 现在无需通过 Google Play 商店更新操作系统即可更新。

    https://developer.chrome.com/multidevice/webview/overview

    如果您希望 WebView 在多个 Android 版本中的行为保持一致,则需要包含您自己的浏览器引擎。一旦这样的项目是Crosswalk。

    What is a difference between intel xdk, appmobi, and crosswalk?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-05
      • 2015-07-10
      • 2018-09-12
      • 1970-01-01
      • 2017-11-16
      • 2019-03-16
      • 2014-12-25
      相关资源
      最近更新 更多