[android-developers] Re: Cookies

2013-06-17 Thread hemanth
Niall gmail.com> writes: > > > Thanks a lot. Got it working now.  > > > > What changes you ade to make it work.Could you share what you have done!!! Thanks in advance. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

Re: [android-developers] Re: Cookies

2011-05-02 Thread Niall
Thanks a lot. Got it working now. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googleg

Re: [android-developers] Re: Cookies

2011-05-02 Thread Nikolay Elenkov
On Tue, May 3, 2011 at 12:52 AM, Nikolay Elenkov wrote: > On Mon, May 2, 2011 at 10:58 PM, Niall wrote: >> I just looked at the logcat of my app and noticed a warning I hadn't noticed >> before. >> W/ResponseProcessCookies(  575): Invalid cookie header: "Set-Cookie: >> USERNAME=user; expires=Mon,

Re: [android-developers] Re: Cookies

2011-05-02 Thread Nikolay Elenkov
On Mon, May 2, 2011 at 10:58 PM, Niall wrote: > I just looked at the logcat of my app and noticed a warning I hadn't noticed > before. > W/ResponseProcessCookies(  575): Invalid cookie header: "Set-Cookie: > USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/; > domain=domain.com". Unable

[android-developers] Re: Cookies

2011-05-02 Thread Niall
I just looked at the logcat of my app and noticed a warning I hadn't noticed before. W/ResponseProcessCookies( 575): Invalid cookie header: "Set-Cookie: USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/; domain=domain.com". Unable to parse expires attribute: Mon Not sure what that

[android-developers] Re: Cookies reseted

2011-01-21 Thread lou
Yes, sorry. I did it in my code, but not when I wrote it here! On Jan 14, 7:05 pm, Mohammed Le Doze wrote: > You are welcome. It sure will be useful for somebody. > Just a quick note about your getCookie method: make sure to store the size > of the 'cookies' list before the for loop. Not doing so

Re: [android-developers] Re: Cookies reseted

2011-01-18 Thread Mohammed Le Doze
You are welcome. It sure will be useful for somebody. Just a quick note about your getCookie method: make sure to store the size of the 'cookies' list before the for loop. Not doing so forces the JVM to calculate the size of the list on each iteration. More info here: http://developer.android.com/

[android-developers] Re: Cookies reseted

2011-01-14 Thread lou
Thank you Mohammed, but I've already seen these questions ! I win ! I don't use onSaveInstanceState/onRestoreInstanceState because I save the cookie in SharedPreferences when I receipt it , and restore it if I have to create a new HttpClient. So my code : private static final String COOKIE_NAME =

[android-developers] Re: Cookies reseted

2011-01-13 Thread lou
First of all, thanks a lot for your answer Federico! My server seems to always accept the same cookie, I'm not sure, but for now, we can guess it ! So I think I'll try to serialize & store the cookie before the activity is killed, and restore it when restart. I'll send a message after this work is

[android-developers] Re: Cookies reseted

2011-01-13 Thread Federico Paolinelli
I am afraid you have to implement a recovery mechanism in any case, because of cookies expiration. If the server gives you an authentication error you should restart the authentication process before performing any other action. In any case you can serialize and store the cookie in the shared pref

[android-developers] Re: Cookies

2009-03-02 Thread Nanard
Maybe try to search the web for HttpClient an Apache lib. available on Android by default. On 2 mar, 05:00, Marco Nelissen wrote: > On Sat, Feb 28, 2009 at 10:44 PM, Miles Smith wrote: > > How does one go about setting a cookie? > > > I have an website that sends mp3's to clients, but the re

[android-developers] Re: Cookies

2009-03-01 Thread Marco Nelissen
On Sat, Feb 28, 2009 at 10:44 PM, Miles Smith wrote: > How does one go about setting a cookie? > > I have an website that sends mp3's to clients, but the request must have a > cookie attached to it. How would I go about setting a cookie for a > MediaPlayer URL request? Is that even possible? No,

[android-developers] Re: Cookies Implementation in Application.

2008-06-22 Thread Larry @ z
I remember there is a apache common http lib you can use. I think it already did some works to help u to use 'cookie' On Jun 18, 11:48 pm, Prem <[EMAIL PROTECTED]> wrote: > Hi, > I wanted to implement cookie in my Android application. How do we use > cookie functionality to track any information

[android-developers] Re: Cookies Implementation in Application.

2008-06-19 Thread Hong
u dont need cookies like web applications do, unless u r doing web applications for the webkit browser. u can use SharedPreferences for small amount of data, think of it like registry in windows. if the data set is large, you might want to consider SQLite, or just your own plain text database if