您需要先制作一个JSON数组,然后将其存储
private String mUrl;private ArrayList<String> mUrlDove;HashMap<String, String> params = new HashMap<String, String>(); params.put("url", mUrl); JSonArray jsArray = new JSonArray(mUrlDove); params.put("urlDove", jsArray.toString()); mUrl = app.getInstance().getmUrlRestWS() + getString(R.string.path); JsonObjectRequest mRequest = new JsonObjectRequest( mUrl, new JSonObject(params), createMyReqSuccessListener(), createMyReqErrorListener()) { @Override public Map<String, String> getHeaders() throws AuthFailureError { return app.getInstance().createBasicAuthHeader(); } };
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)