Code example for BasicCookieStore

0
	} 
 
	public void refreshHttp() 
	{ 
		httpClient = new DefaultHttpClient();
		CookieStore cookieStore = new BasicCookieStore();
		httpContext = new BasicHttpContext();
		httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);
	} 
 
	 
	public void onResponseReceived(String response)
	{ 
		if (categories == null)
		{ 
			setCategories(new CategoryParser().parse(response));
			new HTTPGetTask(this, this).execute("http://dev.mediatheek.hu.nl/apps/android/Lucas_dbs.xml");
		} 
		else 
			setDatabases(new DatabaseParser().parse(response));
	}