Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FInding the webkit version used in Android browser?

Is there a way to tell which version of the webkit software is used in the Android browser on some specific handset?

What would be really great is if there is a URL you can browse to get that information. But any other way would be good too. If you know the webkit version, you know how much html5 suport to expect.

like image 639
Peter vdL Avatar asked Mar 23 '11 22:03

Peter vdL


People also ask

Does Android use WebKit?

WebKit is used as the rendering engine within Safari and was formerly used by Google's Chrome web browser on Windows, macOS, and Android (before version 4.4 KitKat).

What is a WebKit in Android?

The androidx. webkit library is a static library you can add to your Android application in order to use android. webkit APIs that are not available for older platform versions. Requirements. The minimum sdk version to use this library is 14.


2 Answers

WebView webView = new WebView(getApplicationContext());
String useragent=webView.getSettings().getUserAgentString();

The useragent is the reuslt like:

Mozilla/5.0 (Linux; Android 4.4.2; SM-N900 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36

like image 108
jason Avatar answered Oct 18 '22 17:10

jason


On Android 2.3.3, at least, the version of Webkit is reflected in the user agent string.

When I go to WhatsMyUserAgent.com on my Android device with 2.3.3 (Cyanogenmod 7.0.3), I get:

Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; HTC Vision Build/FRF91) AppleWebKit/533.1 (KHTML; like Gecko) Version/4.0 Mobile Safari/533.1
like image 32
Samat Jain Avatar answered Oct 18 '22 16:10

Samat Jain