劫持数据上传、删除Concern...Request.java

This commit is contained in:
huangzhuanghua
2016-09-14 15:59:18 +08:00
parent 1acf79baae
commit e0f79490eb
15 changed files with 95 additions and 195 deletions

View File

@ -139,21 +139,7 @@ public class DataCollectionManager {
JSONObject body = new JSONObject(params);
JsonObjectExtendedRequest request = new JsonObjectExtendedRequest(
Method.POST, url, body.toString(),
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
Utils.log("realTimeUpload = " + response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
// 上传失败,检查网络状态,继续上传
Utils.log("realTimeUpload = " + error);
if (error.networkResponse != null) {
Utils.log(new String(error.networkResponse.data));
}
}
});
null, null);
request.setShouldCache(false);
AppController.addToRequestQueue(request, DataCollectionManager.class);
}