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