I\'ve begun using the recommended HTTPUrlConnection and moved away from the DefaultHTTPClient. One of the things that I haven\'t been able to glue
Checkout the implementation in the link below. It saves the cookies by hostname like the original java.net.InMemoryCookieStore implementation does.
Besides that it contains a SerializableHttpCookie to be able to serialize the complete HashMap into the SharedPreferences.
https://gist.github.com/jacobtabak/78e226673d5a6a4c4367