In a WebView in my app I cannot run JavaScript. I tried many ways and searched many Stackoverflow pages to find the answer. It cannot even show me a simple alert message.
Here's my code :
WebView webView = (WebView) findViewById(R.id.wv_webviewac);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webView.loadUrl(url);
Eeverything is fine in the browser but in a WebView it doesn't work.