Code example for SingleClientConnManager

0
        HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
        HttpProtocolParams.setContentCharset(params, "UTF-8");
        HttpProtocolParams.setUserAgent(params, USER_AGENT );
        HttpConnectionParams.setConnectionTimeout(params, TIMEOUT);
		HttpConnectionParams.setSoTimeout(params, TIMEOUT);
        SingleClientConnManager cm = new SingleClientConnManager(params, registry);
         
        this.client = new DefaultHttpClient(cm, params);
         
	} 
	 
/*	@Override 
	protected void onPreExecute() 
	{ 
		 
	}*/ 
	 
	@Override 
	protected String[] doInBackground(String... arg0)
	{ 
Connect your IDE to all the code out there  Get Codota for Java