Reputation: 469
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.
Upvotes: 11
Views: 21088
Reputation: 1442
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)
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.
Upvotes: 9
Reputation: 458
Follow the guide on http://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/ and you won't have any problems.
It's pretty straightforward and clean.
Upvotes: 0
Reputation: 7435
Couch DB also have android project which can be found here. They have full source code with code sample and instruction on how it can be added in java project...
Also check out following post:
Confused on how to use CouchDB on Android
Hope that helps...
Upvotes: 1