Volley 库不返回整个响应数据。它只返回响应数据的一部分。我打电话给drupal服务。下面是我的代码。
public void BoardRoomRequest() {
pdialog = new ProgressDialog(BoardRoom.this);
pdialog.setTitle("Please wait....");
String url = Global_Application.url + "views/boardroom";
Log.d("url========", url);
Map<String, String> params = new HashMap<String, String>();
StringRequest req = new StringRequest(Request.Method.GET,
getApplicationContext(), url, params,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// TODO Auto-generated method stub
Log.d("Response", response);
pdialog.dismiss();
}
}, new ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
// TODO Auto-generated method stub
Log.d("Error.Response", error.toString());
pdialog.dismiss();
}
});
queue.add(req);
pdialog.show();
}