I am creating a WebView with code rather than loading via an XML layout. The webview appears to be created properly, but I am seeing the errors:
W/AwContent
You didn't defined Android as a javascripinterface
you have to write below lines
// If your callback methods are in same class then just same class object
webView.addJavascriptInterface(this, "Android");
Syntax of addJavascriptInterface() method
addJavascriptInterface(Object object, String name);
// 1. `object` – *the Java object to inject into this WebView’s JavaScript context.*
// 2. `name` – *the name used to expose the object in JavaScript*