Code example for WebView

Methods: getContext

0
 
		@Override 
		public void onReceivedError(WebView view, int errorCode, 
				String description, String failingUrl) { 
 
			Toast.makeText(view.getContext(), 
					"Error " + errorCode + ": " + description, 
					Toast.LENGTH_LONG).show(); 
			super.onReceivedError(view, errorCode, description, failingUrl); 
		} 
	}; 
 
}