Code example for WebSettings

Methods: getUserAgentString, setAllowFileAccess, setAppCacheEnabled, setBuiltInZoomControls, setDatabaseEnabled, setDatabasePath, setDomStorageEnabled, setJavaScriptCanOpenWindowsAutomatically, setJavaScriptEnabled, setLoadsImagesAutomatically

0
		// TODO Auto-generated method stub 
		processWebView.setBackgroundColor(0);
		processWebView.setHorizontalScrollBarEnabled(false);
		processWebView.setVerticalScrollBarEnabled(false);
		WebSettings setting = processWebView.getSettings();
		setting.setUseWideViewPort(true);
		setting.setJavaScriptEnabled(true);
		setting.setDomStorageEnabled(true);
		setting.setLoadsImagesAutomatically(false);
		setting.setPluginsEnabled(true);
		setting.setAllowFileAccess(true);
		setting.setAppCacheEnabled(true);
		setting.setBuiltInZoomControls(false);
		setting.setDatabaseEnabled(true);
//		if(!loadImg){ 
//		setting.setUserAgentString("Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"); 
//		} 
		userAgent = setting.getUserAgentString();
		File workPath = mContext.getDir("uuseeData", Context.MODE_WORLD_WRITEABLE);
		setting.setDatabasePath(workPath.getPath());
		setting.setDomStorageEnabled(true);
		setting.setJavaScriptCanOpenWindowsAutomatically(true);
		processWebView.setWebChromeClient(new WebChromeClient());
		processWebView.setWebViewClient(new UuseeWebViewClient());
		tdProcess = new JSIntface();
		processWebView.addJavascriptInterface(new JSIntface(), "tdProcess");
	}