简体   繁体   中英

calling a client side java method from server side html button?

Ok In an android vebview I have a java method. Is it possible that when a button on the web page being viewed is hit to call that method? If so can you point me in the right direction?

I have done this in all java-script but now my method is in java. Unless there is a way to convert the java method to java-script. I don't know just rambling there.

cross post url: http://groups.google.com/group/android-developers/browse_thread/thread/d0a72c8414871d72?hl=en#

Yes, it's possible. There are quite a few examples that would help you.

One of them: http://techdroid.kbeanie.com/2010/10/android-webview-javascript-and-css.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM