Code example for WebView

Methods: getSettingssetBackgroundColorsetLayoutParamssetWebViewClient, getLayoutParams

0
    	 
    	this.runOnUiThread(new Runnable() {
            public void run() { 
//            	LinearLayout layout = new LinearLayout(actInstance); 
//            	actInstance.addContentView(layout, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT)); 
            	m_webView = new WebView(actInstance);
            	m_webLayout.addView(m_webView);
            	 
            	LinearLayout.LayoutParams linearParams = (LinearLayout.LayoutParams) m_webView.getLayoutParams();
            	linearParams.leftMargin = x;
            	linearParams.topMargin = y;
            	linearParams.width = width;
            	linearParams.height = height;
            	m_webView.setLayoutParams(linearParams);
 
            	m_webView.setBackgroundColor(0);
            	m_webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
            	m_webView.getSettings().setAppCacheEnabled(false);
            	//m_webView.setBackgroundResource(R.drawable.yourImage); 
            	 
            	m_webView.setWebViewClient(new WebViewClient(){
                    @Override 
                    public boolean shouldOverrideUrlLoading(WebView view, String url){
                             
                            return false;