标签:android blog http os io java strong ar for
先给出我们用到的工具类
1.发送请求的工具类
本实例采用HttpClient与服务器通信,用到了一个工具类对Httpclient进行封装:定义了两个方法来发送请求
getRequest:发送GET请求
postRequest :发送POST请求
HttpUtil.java(注意IP地址换成自己的IP地址,这个BASE_URL = "http://losthost:8080/auction/,要不然,你就)
显示各种对话框的工具类:Dialog.xml
标签:android blog http os io java strong ar for
原文地址:http://www.cnblogs.com/qiuyang1/p/3953552.html