Code example for BasicCookieStore

	private void setupHttpIO() { 
		Log.d("Communicator","Instanciating HTTP Client");		
		httpIO = AndroidHttpClient.newInstance(USER_AGENT);
		if(this.cookies == null) {
			// Setup a cookie store for the httpContext, so we don't have to care about them 
			this.cookies = new BasicCookieStore();
			this.httpContext = new BasicHttpContext();
			this.httpContext.setAttribute(ClientContext.COOKIE_STORE, this.cookies);
	public void resetState() { 
		Log.d("Communicator","Resetting state");
		this.loggedIn = false;
		if(this.cookies != null) {
Connect your IDE to all the code out there  Get Codota for Java