Code example for DefaultHttpClient

Methods: getConnectionManager

0
	 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		 
		client.getConnectionManager().shutdown(); 
	} 
	 
	private String getCredentials() {
		String u=user.getText().toString();
		String p=password.getText().toString();
		 
		return(Base64.encodeBytes((u+":"+p).getBytes()));
	} 
	 
	private void updateStatus() { 
		try { 
			String s=status.getText().toString();
			 
			HttpPost post=new HttpPost("https://identi.ca/api/statuses/update.json");