How to store the cookie info when android killed my app <p>I have an app need login, I use a singleton http client to do everything, so it can track the cookies for me.</p> <p>But when I launch a browser intent in my app to view some html pages, the app sometimes be killed by low memory, when user come back from the browser, my app activity would be recreated, but the new http client would not contains that login session id.</p> <p>So I think what I need is to cache the cookies when my app get killed, and then restore it back when the app got recreated. I know there is a CookieSyncManager, but I do not have a full picture of how to use that.</p> <p>(1) So How can I do that? is Cookie seralizable, I just thought to cache it in the sdcard, maybe a bad idea.</p> <p>Another more general question maybe: </p> <p>(2) How to share httpclient with webview/system browser? Not just pass cookies from httpclient to webiew/browser, but also get the cookies when initialize the cookies, How to make the http client and webview/browser share just <em>ONE</em> copy of cookie store in any time?</p>