I have been using HttpClient to connect android with Django. Now i need to find out the response code . I tired the following
String url = "http://10.0.2.2:8000/api/ecp/profile/?format=json";
HttpClient client = new DefaultHttpClient();
HttpGet httpget = new HttpGet(url);
httpget.setHeader("AUTHORIZATION", un.getText().toString()+":"+hash);
client.execute(httpget);
int code = client.getStatusLine().getStatusCode();
but it throws following error
The method getStatusLine() is undefined for the type HttpClient
Any idea what to do? Thanx