2

I am currently creating a application with the webview interface and i need to retrieve the var that is being stored in webview to the android activity

Here is the sample

<html>
<head>
<title></title>
<script>
var testing="hello";
</script>
</head>
<body></body>
</html>

I need to get the Hello string from the script into some String variable under the Android Activity

Thanks in advance.

skid
  • 958
  • 4
  • 13
  • 29
  • Possible duplicate of [How to get return value from javascript in webview of android?](http://stackoverflow.com/questions/3298597/how-to-get-return-value-from-javascript-in-webview-of-android) – Yaroslav Jun 26 '16 at 19:19
  • https://developer.android.com/guide/webapps/webview.html#UsingJavaScript see "binding" – Robert Rowntree Jun 26 '16 at 21:24
  • binding refer to calling a method in android from the JS i need to get a value from JS to android – skid Jun 27 '16 at 00:17

0 Answers0