任何方式在Android中使用的WebView沟通? [英] Any way to communicate with WebView in Android?
问题描述
是否有可能在Android的谷底一个web视图进行交互我的原生Android code?
Is it possible to interact with a webview in android trough my native android code?
我开发Android的CAN总线驱动程序,我想没有送他们通过互联网到web服务我的CAN总线数据发送到一个HTML 5应用程序在web视图。或者是有可能通过HTML 5应用程序在我的原生Android应用程序调用funktions?
I develop can bus driver for android and I like to send my can bus data to a html 5 app in a webview without sending them over internet to a webservice. or is it possible to call funktions via the html 5 app in my native android app?
你知道的有关该方案很好的解决方案?
Do you know a good solution for that scenario?
推荐答案
查看<一个href="http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface%28java.lang.Object,%20java.lang.String%29"><$c$c>addJavascriptInterface$c$c>.
这篇关于任何方式在Android中使用的WebView沟通?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!