use of com.lidroid.xutils.util.PreferencesCookieStore in project xUtils by wyouflf.
the class HttpFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.http_fragment, container, false);
ViewUtils.inject(this, view);
mAppContext = inflater.getContext().getApplicationContext();
downloadManager = DownloadService.getDownloadManager(mAppContext);
preferencesCookieStore = new PreferencesCookieStore(mAppContext);
BasicClientCookie cookie = new BasicClientCookie("test", "hello");
cookie.setDomain("192.168.1.5");
cookie.setPath("/");
preferencesCookieStore.addCookie(cookie);
return view;
}
Aggregations