1
如何獲取餅乾如何從WebView獲取Cookie?
我的代碼,而不是從WebView
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
cookieManager.setCookie("http://xx.xxx.xxx.com","mid=GO ; Domain=.xxx.com");
String cookie = cookieManager.getCookie("http://xx.xxx.xxx.com");
Log.d("VOGA", "cookie ------>"+cookie);
w.getSettings().setJavaScriptEnabled(true);
w.setWebViewClient(new WebViewClient());
w.loadUrl("http://xx.xx.xxx.com");
setContentView(w);
Thenks如需幫助