This document discusses using CouchDB on Android applications. It provides instructions on adding CouchDB functionality to an Android project using Couchbase Mobile for Android. It also describes how to access a CouchDB instance from an Android device using Futon and the Couchbase Service. The document contains code examples for creating, reading, updating and deleting CouchDB documents from an Android app.
7. CouchDB
• document-based, RESTful HTTP API
• replication built-in
• both database and web server
• no locks, uses multi-version concurrency
control
• Map & Reduce Functions = Views
42. Design Documents
• normal json documents, but ids begin with
_design/, e.g. _design/myapp (no %2F :-)
• contain views (Map & Reduce functions) as
well as other application functions
(validation, show/list)
47. CouchApps
• JavaScript and HTML5 apps served from
CouchDB
• No middle tier, Couch is DB + application
server
• CouchApp.org hosts the CouchApp
development tool that pushes changes to a
Couch instance
48. about
Sven Haiges, hybris GmbH
Twitter @hansamann
Android, HTML5,
Groovy & Grails
sven.haiges@hybris.de
49. about
Sven Haiges, hybris GmbH
Twitter @hansamann
Android, HTML5,
Groovy & Grails
sven.haiges@hybris.de
NFC