[android-developers] Re: Call a WebView javascript function from the activity?
You have most of it. Just add a call to the JavaScript function from
your code like this:
mWebView.loadUrl("javascript:bookBtn();") ;
That will fire the function just like if you did it in the address bar
of a browser.
Mark Murphy has this method documented in one of his books (http://
commonsware.com/). You might shell out for a subscription. Well worth
it.
-John Coryat
--
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