Yep, found it. I was looking at the wrong sample. It's WebViewDemo. Thanks!
On Jun 25, 4:40 pm, Daniel Drummond <dmdrummo...@gmail.com> wrote: > Quotinghttp://developer.android.com/resources/articles/using-webviews.html: > > Second, your Activity can invokeJavaScriptmethods. All you have to > do is call the loadUrl method with the appropriateJavaScriptcall: > > mWebView.loadUrl("javascript:wave()"); > > It's nice if you actually read the suggested material before you > assume you have been misunderstood. > > On 26 June 2011 00:33, mikek <mik...@gmail.com> wrote: > > > > > I understand how tobindjavascripttoandroidcode. what I'm looking > > for is a way to call ajavascriptfunction from my nativeandroid > > code. > > > On Jun 25, 11:36 am, Daniel Drummond <dmdrummo...@gmail.com> wrote: > >> 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" <mik...@gmail.com> wrote: > > >> > Is there a way tobindAndroidcode toJavascript? 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 "AndroidDevelopers" group. > >> > To post to this group, send email toandroid-develop...@googlegroups.com > >> > To unsubscribe from this group, send email to > >> >android-developers+unsubscr...@googlegroups.com > >> > 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 "AndroidDevelopers" group. > > To post to this group, send email toandroid-develop...@googlegroups.com > > To unsubscribe from this group, send email to > >android-developers+unsubscr...@googlegroups.com > > 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en