Back to project page couchbase-lite-android.
The source code is released under:
Apache License
If you think the Android project couchbase-lite-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.couchbase.lite.android; //w w w.ja v a 2 s .c o m import com.couchbase.lite.Context; import com.couchbase.lite.NetworkReachabilityManager; import com.couchbase.lite.storage.SQLiteStorageEngineFactory; import java.io.File; public class AndroidContext implements Context { private android.content.Context wrappedContext; private NetworkReachabilityManager networkReachabilityManager; public AndroidContext(android.content.Context wrappedContext) { this.wrappedContext = wrappedContext; } @Override public File getFilesDir() { return wrappedContext.getFilesDir(); } @Override public void setNetworkReachabilityManager(NetworkReachabilityManager networkReachabilityManager) { this.networkReachabilityManager = networkReachabilityManager; } @Override public NetworkReachabilityManager getNetworkReachabilityManager() { if (networkReachabilityManager == null) { networkReachabilityManager = new AndroidNetworkReachabilityManager(this); } return networkReachabilityManager; } public android.content.Context getWrappedContext() { return wrappedContext; } @Override public SQLiteStorageEngineFactory getSQLiteStorageEngineFactory() { return new AndroidSQLiteStorageEngineFactory(); } }