How to install and use couch db in android

Amruta picture Amruta · Mar 19, 2013 · Viewed 18.5k times · Source

How i should install and use couch Db in android.
I mean local couch Db which i can use in tablet as well as emulator.What all steps i must follow to do so.

Answer

ddouglascarr picture ddouglascarr · Mar 20, 2013

I'm working on a project using this at the moment. There are two options:

1) couchbase-android. (yes, couchbase, it's actually couchDB. Go figure)

See This Link

This is what I use. This is just stock couchDB 1.2.0, bundled with an erlang vm for android. I've found it to be flawlessly stable (despite being beta). Big drawback is that it takes ~4 sec to start the app up, as it has to load the erlang emulator. The readme instructions are good.

It is no longer being developed, in favor of ...

2) TouchDB android. Check Out

This is couchDB rewritten in java, so it runs and boots faster on android. There is TouchDB for iOS, which is the same thing in objective-c. I was put off by the development status, but have heard that it's not so bad. The iOS version has had heavy development lately, and is at version 1.0. I hear things like "some features aren't implimented", but not which features those are. Supposedly this will just drop in and replace couchbase-android.

I can attest that couchbase-android works well (if you don't mind the boot time). I have developed my app with cordova, which I am happy to give advice about if that's the way you're going.