Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 HTML 设计了 android UI。现在我想在那个 html 页面中调用 web 服务。我尝试了在 html 中使用 javascript 调用 webservice 的代码。但这对我不起作用。我认为这是因为 android 模拟器中使用的浏览器。
请给我代码以使用 HTML 调用 web 服务。
谢谢……
在这里找到了类似的问题
Android 在 WebView 中调用 JavaScript 函数
你需要调用java方法,在java方法里面你可以调用webservice。