/AndroidPersistentCookieStore

[DEPRECATED] A persistent CookieStore for Android based on java.net.* classes.

Primary LanguageJava

DEPRECATED

AndroidPersistentCookieStore is deprecated and no longer being actively developed.

For a comprehensive gradle-enabled solution, check out loopj/android-async-http.

AndroidPersistentCookieStore

A customizable thread-safe java.net.* based cookie persistence toolkit.

Key features

  • Fully configurable
    • Persistence
    • Exception handling
  • Thread safe
  • Log silently, verbosely, or on errors.

Version

0.1

Release notes

Consider this project in alpha.

Get going!

To start using APCS, in your app's android.app.Application subclass type:

CookieManager cookieManager = 
    new CookieManager(new DefaultPersistentCookieStore(new File(
                        getExternalFilesDir(null)
                        + File.separator
                        + ".cookies.dat")),
                        CookiePolicy.ACCEPT_ORIGINAL_SERVER);

CookieHandler.setDefault(cookieManager);

Who's using APCS?

Shoot me an email! I'll link your project or app here.


McGraw-Hill ConnectED K-12

License

Copyright 2014 Brian Melton

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Credits

commons-io-2.4.jar

Apache Commons IO Copyright 2002-2012 The Apache Software Foundation

This product includes software developed by The Apache Software Foundation (http://www.apache.org/).