简体   繁体   English

操作系统4.1和4.2中的Android Webview

[英]Android webviews in os 4.1 and 4.2

When running web view in devices 4.1, 4.4 and above the webview work fine with good performance. 在设备4.1、4.4及更高版本中运行Web View时,Webview可以正常工作并具有良好的性能。 but when running on device 4.2.2 the performance turn bad and very slow. 但是在设备4.2.2上运行时,性能会变差并且非常慢。

I know that android webview turned Chromium on devices os 4.4 and above rather then the native android browser and that explain why they work well in these devices. 我知道android webview在OS 4.4及更高版本的设备上启用了Chromium,而不是在本机android浏览器上启用了Chromium,这说明了为什么它们在这些设备上能正常工作。 but why is the webview work well in 4.1? 但是为什么webview在4.1中能正常工作? its suppose to be the same web view 它应该是相同的网络视图

My problem is the bad performance in the android 4.2.2. 我的问题是在Android 4.2.2中的不良性能。 i tried all different things like turning off hardware acceleration (work but will not show html-5 components) setting render priority but none works. 我尝试了所有不同的操作,例如关闭硬件加速(工作,但不会显示html-5组件)设置渲染优先级,但没有任何效果。 is there a way to improve performance? 有什么方法可以改善效能?

Unfortunately WebView on Android prior KitKat are buggy. 不幸的是,Android之前的KitKat上的WebView是越野车。 It's possible that some bug were introduced in version 4.2.2 and they may also depends on specific device vendor (I had different behaviors with Samsung devices especially). 可能是在4.2.2版中引入了一些错误,它们也可能取决于特定的设备供应商(尤其是我对Samsung设备的行为有所不同)。 Based on my experience, some issues could be resolved by turning off hardware acceleration, other using some workaround on Javascript\\HTML\\CSS part, but depends on the specific case. 根据我的经验,可以通过关闭硬件加速来解决一些问题,其他问题可以通过在Javascript \\ HTML \\ CSS部分上使用一些解决方法来解决,但要视具体情况而定。

Never tried using third part WebView like GeckoV enter link description here iew or Crosswalk 从未尝试使用像GeckoV这样的第三方WebView 在此处输入链接描述 iew或Crosswalk

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

相关问题 Android 4.1和4.2中的DatePicker问题 - DatePicker issue in android 4.1 and 4.2 Android 4.1 和 4.2 上的 Android 语音识别即服务 - Android Speech Recognition as a service on Android 4.1 & 4.2 Android 4.1 / 4.2(JellyBean)上的Apache Felix - Apache Felix on Android 4.1 / 4.2 (JellyBean) android 4.1中为空异常,但可在4.2中工作 - Null exception in android 4.1 but working in 4.2 什么可以使Android 4.1.X中的加载速度慢而不是4.2? - What could make the loading slow in android 4.1.X and not on 4.2? 滑块不适用于Android 4.0.3,但适用于2.3.5,4.1、4.2 - Slider not working properly for android 4.0.3 but working for 2.3.5 ,4.1,4.2 如何一起编译Android 4.1 / 4.2 Camera + Gallery App - How to compile Android 4.1/4.2 Camera+Gallery App together 如何在Android 4.1和4.2上调试应用内结算? - How to debug in-app billing on Android 4.1 and 4.2? 在现有的Android 4.1和4.2浏览器上访问我们的网络应用 - Accessing our web app on the stock Android 4.1 and 4.2 browser 在Android 4.1 / 4.2设备中将MediaCodec.getOutputFormat()用于编码器的问题 - Problems of using MediaCodec.getOutputFormat() for an encoder in Android 4.1/4.2 devices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM