Wednesday, May 12, 2010

[android-developers] How to communicate from Javascript back to an app?

I'm loading up a webview with some locally generated html and
javascript. It makes calls to app methods just fine.

But what's the right way to get data from Javascript back to the
application? It's simple to have javascript call app methods, but any
parameters specified in the call on the javascript side don't survive
the trip (I just get null in the app). Gross hacks seem obvious (open
a url and encode the data in the url), but that can't be right.

--
James Moore
james@restphone.com
http://jamesmoorecode.blogspot.com/

--
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


Real Estate