Code example for WebView: Displaying web pages

Methods: clearCacheclearHistorygetSettingsloadUrl

0
 
		// ʹwebview������cookie��session 
		CookieSyncManager.createInstance(this);
		CookieSyncManager.getInstance().startSync();
		CookieManager.getInstance().removeSessionCookie();
		mWebView.clearCache(true);
		mWebView.clearHistory();
		// �ܺõ�һ�δ��� 
		mWebView.getSettings().setJavaScriptEnabled(true);
		mWebView.getSettings().setSupportZoom(true);
		mWebView.getSettings().setBuiltInZoomControls(true);
		mWebView.loadUrl(URL);
 
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java