Code example for WebView: Displaying web pages

Methods: getSettingsloadUrlsetWebViewClient, getContext

0
	@ViewById(R.id.webView_loading) 
	protected ImageView loadingImage;
	 
	@AfterViews 
	protected void init() { 
		webView.setWebViewClient(new SoWebViewClient());
		webView.getSettings().setJavaScriptEnabled(true);
		webView.getSettings().setDomStorageEnabled(true);
		webView.loadUrl(url);
		 
		CookieSyncManager.createInstance(webView.getContext()).sync();
		CookieManager.getInstance().acceptCookie();
	} 
	 
	private static final String[] DIVTOHIDE = 
		{"header", "site-menu-wrap", "nav", "footer", "dno", 
		"error-notification overlay-header"}; 
	 
	private class SoWebViewClient extends WebViewClient
Connect your IDE to all the code out there  Get Codota for Java