Code example for WebView: Displaying web pages

Methods: loadUrl, invalidate

0
                if(url.toLowerCase().contains("http://140.211.89.15/mobile/home.html"))
                { 
                	ll.setVisibility(View.VISIBLE);
                	sl.setVisibility(View.GONE);
                	webView.invalidate();
                	webView1.invalidate();
                    webView1.loadUrl("http://140.211.89.15/mobile/home.html");
            		if(count==0){
            			toast.show();
            			count++;
            		} 
                    return true; 
                } 
                return false; 
            } 
        }); 
        webView1.setWebViewClient(new MyWebViewClient());
         
         
        // Setup click listener 
        homeButton.setOnClickListener( new OnClickListener() {