For loading webview in android application it takes around 30 to 40 seconds for loading URL. Can any once please help!!
My code:
this.mWebView.getSettings().setJavaScriptEnabled(true);
this.mWebView.getSettings().setBuiltInZoomControls(false);
this.mWebView.getSettings().setUseWideViewPort(true);
this.mWebView.getSettings().setLoadWithOverviewMode(true);
this.mWebView.getSettings().setRenderPriority(RenderPriority.HIGH);
this.mWebView.getSettings().setCacheMode(
WebSettings.LOAD_CACHE_ELSE_NETWORK);
Also tried with LOAD_NO_CACHE
option.
WebViews的速度将比浏览器慢一点,因为这里的每个活动都必须回调Android应用程序层。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.