I´ve a defined a WebView with a JavaSciptInterface:
myWebView.addJavascriptInterface(new WebAppInterface(this), "Android");
>
In this Interface I have a Method like:
@JavascriptInterface
> public String [] getTest() {
> String [] test = new String[5];
> test [0] = "0..";
> test [1] = "2..";
> return test;
> }
>
Now on my website i want to receive this array:
<script type="text/javascript">
> var array = new Array();
array = Android.getTest(); //didn´t work
>
array = JSON.parse(Android.getTest()); // didn´t work, too
> </script>
>
The array alwas is displayed as "undefined". Am I doing something wrong or
is it just not possible?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.