You need to use 10.0.2.2:4984 if you are on default android emulator.  

Or are you testing from a device?


> On Sep 29, 2014, at 8:07 AM, Raheel Mateen <[email protected]> wrote:
> 
> yes its working fine 
> 
> but when i use this url 
> public static final String SYNC_URL = "http://localhost:4984/sync_gateway";;
> 
> and sync the documnet 
> URL syncUrl;
>         try {
>             syncUrl = new URL(SYNC_URL);
>         } catch (MalformedURLException e) {
>             throw new RuntimeException(e);
>         }
> 
>         Replication pullReplication = database.createPullReplication(syncUrl);
>         pullReplication.setContinuous(true);
> 
>         Replication pushReplication = database.createPushReplication(syncUrl);
>         pushReplication.setContinuous(true);
> 
>         pullReplication.start();
>         pushReplication.start();
> 
>         pullReplication.addChangeListener(this);
>         pushReplication.addChangeListener(this);
> 
> so its generating the error connection to "http://localhost:4984 refused
> 
>> On Wednesday, September 24, 2014 4:57:12 PM UTC+5, Raheel Mateen wrote:
>> I follow the following to start the couch db on android
>> http://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/#developing-apps
>> 
>> but i actually not understand how to query in couch db for example if i make 
>> a document in a db so how should i access that document with the help of 
>> query.
> -- 
> 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/3dc00fec-6ca7-4649-a548-addeb5909418%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/57A66B08-AA47-4791-95DC-C0A86ADAB81B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to