与服务器通信有多种方法。常见的就是HttpURLConnection。你可以去网上搜下HttpURLConnection的get和post方法传递参数和获取数据的代码。这个网址也许可以帮到你http://blog.csdn.net/iispring/article/details/51474529