Code example for WebSettings

Methods: setJavaScriptEnabledsetLoadsImagesAutomatically

0
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        webview = new WebView(this);
         
        WebSettings webSettings = webview.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webSettings.setLoadsImagesAutomatically(true);
         
        webview.addJavascriptInterface(new CalendarJsInterface(this, webview), "JSI");
        setContentView(webview);
         
        webview.loadUrl("http://172.25.250.73:8081/hin-web/mobile/Calendar/html/Calendar.html");
         
    } 
	 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE