I figured out what the issue was : missing quotes in the testEcho() parameter. This is how I got the call to work:
myWebView.loadUrl("javascript:testEcho('Hello World!')");
More Related Contents:
- Android webview, loading javascript file in assets folder
- Detect click on HTML button through javascript in Android WebView
- Call Java function from JavaScript over Android WebView
- Making facebook login work with an Android Webview
- using javascript in android webview
- Android Web-View : Inject local Javascript file to Remote Webpage
- In Android Webview, am I able to modify a webpage’s DOM?
- Download Blob file from Website inside Android WebViewClient
- Is there a limit on length of the key (string) in JS object?
- Android 4.2.1, WebView and javascript interface breaks
- JavaScript not working in Android Webview?
- WebView methods on same thread error
- Run javascript code in Webview
- Is it possible to get data from HTML forms into android while using webView?
- How to play a video in a webview with android?
- WebView and HTML5
- Detect a finger swipe through JavaScript on the iPhone and Android
- detect ipad/iphone webview via javascript
- Refused to load the script because it violates the following Content Security Policy directive
- Android webview & localStorage
- Capture keys typed on android virtual keyboard using javascript
- JavaScript keypress event not raised on Android browser
- Disable zoom on input focus in Android webpage
- Does React Native compile JavaScript into Java for Android?
- Reference javax.script.ScriptEngine in android or evaluate a javascript expression
- Pick up the Android version in the browser by Javascript
- How to run my node.js project on android?
- React native – objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store})
- What happens to JavaScript code after app is compiled using Titanium Mobile
- Is it possible, in JavaScript, to detect when the screen is turned off in the Android & iOS browsers