Hi Prasanna,

You can overwrite AndroidContext 
(https://github.com/couchbase/couchbase-lite-android/blob/3193bdd1e26a61a696ca9e84a7867c800a110bbf/src/main/java/com/couchbase/lite/android/AndroidContext.java#L27)
 
or implement Context 
(https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/Context.java),
 
and return directory where you would like to store.

Thanks,
Hideki

On Monday, January 25, 2016 at 6:33:37 AM UTC-8, PRASANNA KUMAR wrote:
>
> Hi All,
>
> I would like to support my android application with store the Couch base 
> lite databases in external SDCard due to phone memory is very less(may be 
> 8gb or 16 gb) that is not enough to my application. I have tried to create 
> CBLManger object in external SDCard.
>
> public class Application extends android.app.Application {
>     private Manager manager;
>     private static Context mContext;
>     
>     ...
>     
>     @Override
>     public void onCreate() {
>         super.onCreate();
>         mContext = getApplicationContext();
>         try {
>             /*
>              * In Java the Manager instance and all the objects descending
>              * from it may be used on any thread.
>              */
>             manager = new Manager(new AndroidContext(mContext), 
> Manager.DEFAULT_OPTIONS);
>         } catch (IOException e) {
>             Log.e(TAG, "Cannot create Manager instance", e);
>             return;
>         }
>     }
> }
>
>
> I am using latest version 1.1, Where by default it is taking phone memory 
> only. How we can achieve this feature and how to create Manager 
> class(Constructor) instance  for using external SDCard options
>
> Thank You,
> Prasanna Kumar
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/ad37f79e-d718-437b-a77e-ee13741dc2f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to