Re: [android-developers] Binding JavaScript code to Android code

2011-06-25 Thread Daniel Drummond
See the Webview sample in the SDK. I think that shows exactly what you want to do. On Jun 25, 2011 7:23 PM, "mikek" wrote: > Is there a way to bind Android code to Javascript? For example, I'd > like to update a webview with accelerometer data without having to > poll the native app. > > -- > You

Re: [android-developers] Binding JavaScript code to Android code

2011-06-25 Thread Kristopher Micinski
WebView has an addJavaScriptInterface() call, is this the type of thing you want? Kris On Sat, Jun 25, 2011 at 2:23 PM, mikek wrote: > Is there a way to bind Android code to Javascript? For example, I'd > like to update a webview with accelerometer data without having to > poll the native app.

[android-developers] Binding JavaScript code to Android code

2011-06-25 Thread mikek
Is there a way to bind Android code to Javascript? For example, I'd like to update a webview with accelerometer data without having to poll the native app. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to