Android > WebView

Redjini WiKi
< java‎ | android


Android WebView 버전 확인하기

소스
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
	try{
		PackageInfo webviewinfo = manager.getPackageInfo("com.google.android.webview", 0);
		Log.d(TAG, "WEBVIEW : version name: " + webviewinfo.versionName);
		Log.d(TAG, "WEBVIEW : version code: " + webviewinfo.versionCode);
	}catch (Exception e){
		BytoLog.e(e.toString(), e);
	}
}else{
	WebSettings settings = mWebView.getSettings();
	Log.d(TAG, "WEBVIEW :"+settings.getUserAgentString());
}
WebView Google Play Store

https://play.google.com/store/apps/details?id=com.google.android.webview