Code example for AndroidHttpClient

Methods: close

0
 
	 
	@Override 
	protected void onPostExecute(final HttpResponse result)
	{ 
		this.httpClient.close();
		//It should not be null anyway this check is not harmful 
		if (result != null)
		{ 
			switch (result.getStatusLine().getStatusCode()) {
				case HttpStatus.SC_OK:
					//OK 
 
					break; 
				case HttpStatus.SC_UNAUTHORIZED:
					//ERROR IN USERNAME OR PASSWORD 
					break; 
				case HttpStatus.SC_BAD_REQUEST:
					//WHAT THE HECK ARE YOU DOING? 
					break; 
				default: