How does evaluateJavascript work?
问题 I\'m trying to use the new evaluateJavascript method in Android 4.4, but all I ever get back is a null result: webView1.evaluateJavascript(\"return \\\"test\\\";\", new ValueCallback<String>() { @Override public void onReceiveValue(String s) { Log.d(\"LogName\", s); // Log is written, but s is always null } }); How do I return a result to this method? Update: Little bit more info: I have the INTERNET permission set I have setJavascriptEnabled(true); Tried apostrophe string: return \'test\'; ,