开发者

How to read cookie in Android 1.6?

I face prob in add & read cookie from default browser. I want to save some value in user default browser and next time i want dat value I m setting cookie

BasicClientCookie c = new BasicClientCookie("AppN", "CookN");
    c.setValue("Value");
    c.setDomain("New Domain");
    c.setPath("/newPath");
    c.setComment("new Comment");
    c.setExpiryDate(new Date("11/02/2012"));
    String s = c.toString();
    CookieSyncManager.createInstance(this); 
  开发者_如何学编程  CookieManager cookieManager = CookieManager.getInstance(); 
    cookieManager.setCookie("http://www.myssec.com",s);

is it ok if yes den can u write code to read cookie else how to add cookie plz i m new in android


I face prob in add & read cookie from default browser.

That is not possible, sorry.

I want to save some value in user default browser and next time i want dat value I m setting cookie

That is not possible, sorry.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜