You can do something like this :
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("colours[]","red"));
nameValuePairs.add(new BasicNameValuePair("colours[]","white"));
nameValuePairs.add(new BasicNameValuePair("colours[]","black"));
nameValuePairs.add(new BasicNameValuePair("colours[]","brown"));
where colour is your array tag. Just use []
after your array tag and put value. Eg. if your array tag name is colour
then use it like colour[]
and put value in loop.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…