**This repository is in the process of being deprecated. See the Android TODO app in the training documentation for a more up-to-date sample.
ToDo Lite for Android
A shared todo app that shows how to use the Couchbase Lite Android framework to embed a nonrelational ("NoSQL") document-oriented database in an Android app and sync it with Couchbase Server in a public or private cloud.
Get the code
$ git clone https://github.com/couchbaselabs/ToDoLite-Android.git
$ cd ToDoLite-Android
Build and run the app
- Import the project into Android Studio by selecting
build.gradle
orsettings.gradle
from the root of the project. - Run the app using the "play" or "debug" button.
Point to your own Sync Gateway
-
Start Sync Gateway with the configuration file in the root of this project.
~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json
-
Open Application.java and update the
SYNC_URL_HTTP
constant to point to your Sync Gateway instance.private static final String SYNC_URL_HTTP = "http://localhost:4984/todolite";
You can use the
adb reverse tcp:4984 tcp:4984
command to open the port access from the host to the Android emulator. This command is only available on devices running android 5.0+ (API 21). -
Log in with your Facebook account.
-
Add lists and tasks and they should be visible on the Sync Gateway Admin UI on http://localhost:4985/_admin/.
Community
If you have any comments or suggestions, please join our forum and let us know.
License
Released under the Apache license, 2.0.
Copyright 2011-2014, Couchbase, Inc.