I use httpclient along with cookiestore to keep my session, now I want to use the same session on the next activity, I’m using api 8 so I can’t use cookiemanager. Is it possible? If only I could somehow send the cookie list through, eg:
Intent i = new Intent(this, Login.class);
i.putExtra("domain", domain);
//need to get the following list across
List<Cookie> cookies = cookieStore.getCookies();
//i.putMyDamnCookies("cookies",cookies);
startActivity(i);
Any idea how I could achieve this?
store your List as an array of strings and pass it to in an intent to next activity like this:
Then in your next actvity, retrieve the array of cookies from the intent and convert the cookies back like so: