On Wed, May 12, 2010 at 11:54 AM, Mark Murphy <[email protected]> wrote:
>> 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).
>
> It worked for me, if you choose primitive data values. I don't have any
> examples handy, as the last time I did that was for a consulting gig.

You're right, but it looks like it cares about how you declare the
method.  If it looks like this:

public void callThisJavaMethod(Object x) { ...

I get null.  If it looks like this:

public void callThisJavaMethod(String x) { ...

I can get a string.  I'll just turn everything I care about into json,
works well enough.

-- 
James Moore
[email protected]
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 [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

Reply via email to