You might find help in the following stack overflow questions: - http://stackoverflow.com/questions/3587254/how-do-i-manage-cookies-with-httpclient-in-android-and-or-java - http://stackoverflow.com/questions/2298889/robusteasy-way-to-save-restore-android-app-instance-state
Regards On 13 January 2011 11:48, lou <[email protected]> wrote: > Hi ! > I have an application using HttpClient, who saves automatically the > cookies received from the login request. > The matter : when an activity is killed, my httpClient is reseted, > consequently all next request are refused by the server cause the > cookies aren't sent. > What can I do ? > > My suggestion : save the HttpClient in onSaveInstanceState(Bundle > outState), but I think it isn't possible > My other suggestion : get cookies ( I don't know how ! ) and save it > in onSaveInstancestate(...), and restore it in onRestoreInstanceState > > Maybe these suggestions aren't the good solution. In all case, I need > a little bit of your help ! > Thanks in advance. > Louis C. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- MLD -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

