Code example for BasicHttpContext

Methods: setAttribute

0
		m_activity = act;
		m_username = username;
		m_password = password;
		m_quality = quality;
		m_httpclient = AndroidHttpClient.newInstance(null);
		m_httpcontext = new BasicHttpContext();
		m_httpclient.getParams().setBooleanParameter("http.protocol.handle-redirects", true);
		m_cookies = new BasicCookieStore();
 
		m_httpcontext.setAttribute(ClientContext.COOKIE_STORE, m_cookies);
	} 
	 
	 
	/** 
	 * Start the stream. This does: 
	 * - Login 
	 * - Gets live page 
	 * - Parses live page to get stream URL 
	 * - Fires up a MediaPlayer to play the stream 
	 * Uses the  
	 * @throws GOMStreamException