Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/03/2012, 17:13
Alemanarg
 
Fecha de Ingreso: julio-2008
Ubicación: Buenos Aires, Mar del plata
Mensajes: 250
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Conexion Android + php + mysql

Hola.
No sabia eso de Android 4.0.

Al final, lo he solucionado de la siguiente manera:


String input_data= "xxxxxxxxxxxxxxx.php";

HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(input_data);

param.add(new BasicNameValuePair("xxxxx", user.getText().toString()));
param.add(new BasicNameValuePair("xxxxx", mail.getText().toString()));
try {
httpPost.setEntity(new UrlEncodedFormEntity(parametros));
HttpResponse httpRespose = httpClient.execute(httpPost);
HttpEntity httpEntity = httpRespose.getEntity();
InputStream in = httpEntity.getContent();

y luego todo lo que sigue para finalizar la conexion.
Con eso no he tenido problemas.

Por lo que averigué, Android no se conecta directamente con MYSQL, por lo que utilizamos PHP.

Saludos!!