[android-developers] Re: WebView / JavaScriptInterface / String []
I don't think it is supported.
In our code, we communicate arrays of data by plain Strings, calling 'join()' on the JavaScript array and then parsing out the String into an array again on the Java side.
On Friday, July 13, 2012 8:21:06 AM UTC-4, Pent wrote:
-- On Friday, July 13, 2012 8:21:06 AM UTC-4, Pent wrote:
I'm trying to return a String [] from a function call in my
JavaScriptInterface object:
public String [] test() {
return new String [] { 'flowers' };
}
When I call this in the WebView javascript, it just stops at that
point.
Is this just not supported ? Has anyone managed to get it working ?
Thanks,
Pent
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home