Interfacing Javascript from Webview to native Android
Native methods can be called from a Webview using JavaScript. To add a interface to webview, the method addJavascriptInterface can be used. Here is an example.
First, create a class with public methods with @JavascriptInterface
annotations (Not @Java...
blog.mdminhazulhaque.io1 min read