开发者

CouchDB Replication to Android ... for Android Applications, or Android Browser or?

开发者 https://www.devze.com 2023-03-07 00:21 出处:网络
My goal is to replicate my CouchDB to Android to allow offline access & reduced latency. I watched this video:

My goal is to replicate my CouchDB to Android to allow offline access & reduced latency.

  • I watched this video: http://www.youtube.com/watch?v=3RdcKWYGqig

One fundamental point I don't get is:

  • Doe开发者_JS百科s CouchDB replication work only for Android Applications?

  • Or, can it work for a web application running in the Android browser (this is what I am shooting for)? If so, how?


you would need to install the CouchDB software on the Android device in order to get it to work.

Once that is installed, the user can visit your app via the browser at http://localhost:5984/path/to/my/app

You could create one of those bookmarks that looks like an app, and point it to the local couch url.

Chris


Ofcourse you can create browser based applications.

Either try creating a couchapp and loading it with the browserview in android or club it with something like Sencha to wrap it around and making it a hybrid native web app!

If you know how to create couchapps, then it should be pretty straight forward, else, take a look into how to create simple couchapps. Ofcourse, i'm going under the assumption that you already know a bit of Android!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号