title: How do I persist cookies when using HTTPUrlConnection?
body: <p>I've begun using the recommended <code>HTTPUrlConnection</code> and moved away from the <code>DefaultHTTPClient</code>. One of the things that I haven't been able to glue back together is the use of a persistent cookie store. I'd like to simply attach a custom cookie handler/manager to my connection to store the cookies. The Android documentation hasn't been very helpful as it wraps up the subject about cookies in two lines. </p>
  
  <p>I've been using LoopJ's <code>PersistentCookieStore</code> earlier and that worked beautifully.</p>
  
  <p>Any idea on how I could set up a persistent cookie store in Android that I can attach to my <code>HTTPUrlConnection</code> that saves and retrieves cookies automatically?</p>
  
  <p>Thanks</p>