Using the HTTP protocol for network interaction in android There are two ways to send HTTP requests:HttpURLConnection,HttpClient Parse XML and JSON formats way data Using Java callback mechanism to return the server response data
如下要点: 在Android中使用HTTP协议来进行网络交互的知识。通常有两种方式来发送HTTP请求,分别是HttpURLConnection和HttpClient; 对XML和JSON格式的数据进行解析; 利用Java的回调机制来将服务器响应的数据进行返回。