Code example for WebView

Methods: clearHistoryclearViewstopLoading, freeMemory, getVisibility, setVisibility

0
 
    } 
 
	public void exitFacebook() 
	{ 
		if(mWebView != null && mWebView.getVisibility() == View.VISIBLE)
		{ 
			mWebView.setVisibility(View.INVISIBLE);
			mWebView.stopLoading();
			mWebView.freeMemory();
			mWebView.clearHistory();
			mWebView.clearView();
 
			//do callback 
			if(onExitCallback != null)
			{ 
				this.onExitCallback.doCallback();
			} 
		} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE