Code example for WebChromeClient

0
	super(context, attrs, defStyle);
	initView(); 
    } 
 
    private void initView() { 
	this.setWebChromeClient(new WebChromeClient());
    } 
 
    public void noNetwork(boolean b) {
	this.setNetworkAvailable(false);
	this.getSettings().setBlockNetworkImage(true);
	if (Build.VERSION.SDK_INT >= 8) {
	    this.getSettings().setBlockNetworkLoads(true);
	} 
 
    } 
 
    public void loadPage(String url) {
	this.loadUrl(url);
    }