I am trying to access Basecamp API from my Android/Java source code following way ....
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine
Appendix on the brilliant and very helpfull answer of CSchulz:
in http client 4.3 this:
localcontext.setAttribute(ClientContext.AUTH_CACHE, authCache);
does not work anymore (ClientContext.AUTH_CACHE is deprecated)
use:
import org.apache.http.client.protocol.HttpClientContext;
and
localcontext.setAttribute(HttpClientContext.AUTH_CACHE, authCache);
see http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/protocol/ClientContext.html
and:
http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/protocol/HttpClientContext.html