enviando array php com POST android
Eu quero enviar uma matriz php via POST do android para o servidor php e eu tenho esse código
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url);
StringEntity dades = new StringEntity(data);
httppost.setEntity(dades);
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);
HttpEntity resEntity = response.getEntity();
return resEntity.getContent();
Eu acho que a matriz php pode ser pode ir emStringEntity dades = new StringEntity(data);
(dados são a matriz php). Alguém pode me ajudar