开发者

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

开发者 https://www.devze.com 2023-03-22 15:03 出处:网络
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?

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 jus开发者_高级运维t 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

0

精彩评论

暂无评论...
验证码 换一张
取 消