Ver Mensaje Individual
  #1  
Viejo 31/03/15, 18:36:06
Array

[xs_avatar]
nachomantinemonelias nachomantinemonelias no está en línea
Usuario poco activo
 
Fecha de registro: mar 2015
Mensajes: 5
Modelo de smartphone: bq 5.7
Tu operador: Movistar
conexion a base de datos mediante webservice ayuda

Buenas
estoy intentando conectar mi aplicacion, a una base de datos mediante webservice, y me da problemas.

public String httpGetData(String mURL){

String response="";
mURL= mURL.replace(" ", "%20");
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(mURL);

ResponseHandler<String> responsehandler = new BasicResponseHandler();
try {
response = httpclient.execute(httpget, responsehandler);

} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return response;


}

En esta funcion, me aparece tachado httpClient y en las ayudas de Android Studio pone

org.apache.http.client.clientprotocolexception is deprecated

this inspection reports where deprecated code is used in the specified inspection scope

Alguien puede decirme que sucede?
gracias