Tuesday, April 17, 2012

Couchdb on Android


I am trying to evaluate couchdb and its potential for solving the sync problem on Android but I can't find any documentation that answers my questions regarding how replication to Android devices works.



It looks like the focus todolist couchapp is intended to demonstrate what I am looking for. Does it automatically sync todo's between webapp and device?



Also, how do I get the focus couchapp onto the Android device?


Source: Tips4all

2 comments:

  1. @Paul: regarding your last question


    Also, how do I get the focus couchapp
    onto the Android device?"


    It is mentioned in the video link posted above, but to shorten things for others searching the same matter:

    I assume you know how couchapp push is working since you seem to be using the

    "focus" couchone/Focus@github couchapp. Otherwise couchapp.org provide a a nice tutorial.

    Pushing apps to Android couchdb can be done via port-forwarding with the Android Debug Bridge , which is shipped with the Android SDK.

    On unix like systems the easiest way to use adb would be to open a terminal, "cd" to the sdk directory and to the included "tools/" directory. From there you could call

    ./adb forward tcp:5985 tcp:5984


    Which will basically enable you to go to "localhost:5985" on your computer and will be redirected to the couchdb running on your android device.
    Assuming that you have


    installed CouchDB from the market and running
    enabled debugging on your phone
    have connected your phone:)

    ReplyDelete
  2. You can watch Couchdb Android video. It might help
    http://www.youtube.com/watch?v=3RdcKWYGqig

    ReplyDelete