How to install and use couch db in android

我怕爱的太早我们不能终老 提交于 2019-12-03 11:53:55
ddouglascarr

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.

Praful Bhatnagar

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...

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!