调用Android的使用HTML的Web服务 [英] calling web service using html in android
问题描述
我设计使用HTML.Now我想调用Web服务在HTML页面中的Android UI。
我尝试了code为HTML使用javascript调用web服务。但它没有为我工作。我想,这是因为在Android模拟器使用的浏览器。
I designed the android UI using HTML.Now I want to call web service in that html page. I tried a code for calling webservice using javascript in html. But it didn't work for me. I think it is because of the browser used in android emulator.
请给我code。使用HTML调用Web服务。
Please give me code to call webservice using HTML.
感谢名单......
Thanx......
推荐答案
在这里发现了类似的问题。
Similar question found here
<一个href=\"http://stackoverflow.com/questions/4325639/android-calling-javascript-functions-in-webview\">Android调用的WebView的JavaScript函数
您需要调用Java方法和Java方法中可以调用Web服务。
you need to call java method, and inside java method you can call webservice.
这篇关于调用Android的使用HTML的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!