求一个android使用json发送/接收服务器数据的完整项目

日期:2015-04-22 19:02:43 人气:1

求一个android使用json发送/接收服务器数据的完整项目

JSONObject json = new JSONObject(); json.put(key,value); .... String s = json.toString(); HttpClient client =new DefaultHttpClient(); HttpPost post = new HttpPost(url); HttpEntity entity = new StringEntity(s); post.setEntity(entity); HttpResponse
    A+
热门评论