how to post multiple parameter android Volley
** post multiple array as like 101,102,103 params.put(\"sessionid\", 101,102,103); //as like **
any other Way
just use for loops and it works fine.
@Override
protected Map<String, String> getParams() throws AuthFailureError {
Map<String, String> params = new HashMap<>();
for(int i=0; i < arraylist.size; i++)
{
params.put("sessionid["+i+"]",String.valueOf(arraylist.get(i)));
}
params.put("EntID", "7");
params.put("offset", String.valueOf(countView));
params.put("limit", "10");
params.put("LastLoginTime", "2016-02-01");
return params;
}
arraylist is the list of your sessionid. This works for me.