Android webview settings and more tutorials aide ide
Sample useful android webview codes to improve your webview performance and for having more controll. Webview enable zoom: webView.getSettings().setBuiltInZoomControls(true); Allowed image to load inside webview [Change into "true" to enable and false for disable] webView.getSettings().setLoadsImagesAutomatically(true); Enable javascript run inside in your webview webView.getSettings().setJavaScriptEnabled(true); Enable Domstorage and Cache: webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setAppCacheEnabled(true); Set useragent of webview: webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 8.0.0;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36"); Webview refer url: Map<String, String> extra = new HashMap<String, String>(); extra.put("Referer", "https://www.google.com/"); webView.loadUrl("https://sample.com", ext...