如何向 URL 发送数据和从 URL 接收数据,即 android 中的服务器端脚本、Web 服务?

How can I send and receive data to and from a URL, i.e. server side scripts, web services in android?

如何通过我的 android 应用程序将数据(例如,字符串或整数值)发送到服务器端脚本或 Web 服务。 你能告诉我一些关于如何调用 web services.or 如何从 web 服务获得响应的细节吗

http post 会搞定的。 http://developer.android.com/reference/org/apache/http/client/methods/HttpPost.html

这是将数据从您的应用程序获取到网络服务器的最佳方式。如果您要检索数据,则应执行 GET 请求,这与 javascript 执行 ajax 请求的方式不同。

这里还有一个 link 教程,可以帮助您更好地理解它 http://mobiledevtuts.com/android/android-http-with-asynctask-example/