Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fea12443d3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.phonegap
assets
libs
phonegap
res
src/com/couchbase/callback
.classpath
.gitignore
.project
AndroidManifest.xml
Couchbase.zip
README.md
ant.properties
build.xml
couchbase.xml
proguard.cfg
project.properties

README.md

Android Couchbase Callback

This application provides the fastest way to deploy a CouchApp to an Android device using Couchbase Mobile and Apache Callback (formerly PhoneGap).

Getting Started

  1. Clone this repository
  2. Build this application, either using eclipse or command line tools

    ant debug

  3. Install/Launch this application on your device/emulator

    adb install bin/AndroidCouchbaseCallback-debug.apk adb shell am start -n com.couchbase.callback/.AndroidCouchbaseCallback

  4. Couchbase Mobile is now running, you should see now see instructions on screen install your CouchApp.

  5. Forward the Couchbase Mobile from the device to your development machine (the Couchbase port is dynamic and is shown on the screen)

    adb forward tcp:8984 tcp:

  6. From within your CouchApp project directory, run the following command to install your couchapp on the device.

    couchapp push . http://localhost:8984/couchapp

  7. Compact your database

    curl -X POST -H "Content-Type: application/json" http://localhost:8984/couchapp/_compact

  8. Copy the database off the device and into this Android application's assets directory:

    adb pull /mnt/sdcard/Android/data/com.couchbase.callback/db/couchapp.couch assets

  9. Repackage your application with the database file included

    ant debug

Something went wrong with that request. Please try again.