For the More Curious: WebView Updates

WebView underwent a serious overhaul with the release of KitKat (Android 4.4, API 19). The new WebView is based on the Chromium open source project. It now shares the same rendering engine used by the Chrome for Android app, meaning pages should look and behave more consistently across the two. (However, WebView does not have all the features Chrome for Android does. You can see a table comparing the two at developer.chrome.com/​multidevice/​webview/​overview.)

The move to Chromium meant some really exciting improvements for WebView, such as support for new web standards like HTML5 and CSS3, an updated JavaScript engine, and improved performance. From a development perspective, one of the most exciting new features is the added support for remote debugging of WebView using Chrome DevTools (which can be enabled by calling WebView.setWebContentsDebuggingEnabled()).

As of Lollipop (Android 5.0), the Chromium layer of WebView is updated automatically from the Google Play Store. Users no longer wait for new releases of Android to receive security updates (and new features). This is big news.

More recently, as of Nougat (Android 7.0), the Chromium layer for WebView comes directly from the Chrome APK file, lowering memory and resource usage. Take solace in knowing that Google works to keep the WebView components up to date.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.31.73