Android Couchbase Callback
- Clone this repository
Build this application, either using eclipse or command line tools
Install/Launch this application on your device/emulator
adb install bin/AndroidCouchbaseCallback-debug.apk adb shell am start -n com.couchbase.callback/.AndroidCouchbaseCallback
Couchbase Mobile is now running, you should see now see instructions on screen install your CouchApp.
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:
From within your CouchApp project directory, run the following command to install your couchapp on the device.
couchapp push . http://localhost:8984/couchapp
Compact your database
curl -X POST -H "Content-Type: application/json" http://localhost:8984/couchapp/_compact
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
Repackage your application with the database file included