I want to send a php array via POST from android to php server and i have this code
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new
You can do something like this :
List nameValuePairs = new ArrayList();
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.