2010-11-18 49 views

Trả lời

0

Bạn có thể làm cho nó tĩnh và sử dụng nó trong tất cả các yêu cầu

client = new OkHttpClient(); // client will be static and use in all requests 

CookieManager cookieManager = new CookieManager(); 
cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL); 
client.setCookieHandler(cookieManager); 
Các vấn đề liên quan