这是我的webserivce的链接,请查看 https://drive.google.com/open?id=0BwCPG2lI_UeCcXlLUGhibTJEdWs
这是android代码的图像 android code
请帮帮我
答案 0 :(得分:0)
首先,您应该在JSONArray
内发送JSONObject
数据,然后通过以下代码获取并设置您的列表
public void onResponse(String response) {
try {
JSONObject responseJsonObject = new JSONObject(response);
JSONArray arrayJsonObject = responseJsonObject.getJSONArray("items");
for (int i = 0; i < arrayJsonObject.length(); i++) {
JSONObject jsonObject = arrayJsonObject.getJSONObject(i);
//Or do somthing with Array Datas
}
}
}
如果您的数组没有名称:
JSONArray jsonArray = new JSONArray(String_Result);