I hava a programme contains java and javascript(webview). Now, in java
String vi = "I am a student";
In javascript
var fromvi;
How can I get the value in java String "vi" and set this value into javascript var "fromvi"? Thanks!
I hava a programme contains java and javascript(webview). Now, in java
String vi = "I am a student";
In javascript
var fromvi;
How can I get the value in java String "vi" and set this value into javascript var "fromvi"? Thanks!
AddJavascriptInterface
will allow you to bind a Java object to a WebView and control it with Javascript.