Re: [android-developers] cookie value is null

2011-02-12 Thread vani reddy
anyways i got the cookie value through http connection,can you tell how to
send it in the header of a url?

On Sat, Feb 12, 2011 at 1:30 AM, TreKing  wrote:

> On Fri, Feb 11, 2011 at 4:34 AM, vani reddy wrote:
>
>> CookieManager cm= CookieManager.getInstance();
>> CookieManager cookieManager = CookieManager.getInstance();
>>
>> cookieManager.setAcceptCookie(true);
>> String cukies=cm.getCookie("http://cms.beemedia.com/
>> ");
>>
>
> This makes no sense.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
 Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] cookie value is null

2011-02-11 Thread TreKing
On Fri, Feb 11, 2011 at 4:34 AM, vani reddy  wrote:

> CookieManager cm= CookieManager.getInstance();
> CookieManager cookieManager = CookieManager.getInstance();
>
> cookieManager.setAcceptCookie(true);
> String cukies=cm.getCookie("http://cms.beemedia.com/
> ");
>

This makes no sense.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] cookie value is null

2011-02-11 Thread vani reddy
Hi friends,
  to get the cookies ,i have given the below code snippet,

 CookieSyncManager csm =
CookieSyncManager.createInstance(Login.this);
csm.startSync();
CookieManager cm= CookieManager.getInstance();
CookieManager cookieManager = CookieManager.getInstance();

cookieManager.setAcceptCookie(true);
String cukies=cm.getCookie("http://cms.beemedia.com/";);

System.out.println("cookiee  "+cukies);
cm.setAcceptCookie(true);
boolean b_cookie=cm.hasCookies();
System.out.println("booolean  "+b_cookie);
wen i run it on emulator it will show the cookie,but wen i run on device,it
shows null,and i have given INTERNET PERMISSION,still not working.
Any help greatly appreciated.
-- 
 Regards,
Vani Reddy

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en