TODOs: Faster Start and Restart

The app has been noticeably slow to start up and restart on occasion.

Reason 1: Cannot connect to cloud syncbase to set up its database.
- A shorter timeout alleviates this issue. In the long run, we don't
  have to do this in the app, anyway.

Reason 2: Thread.sleep instead of delayed scheduling of syncgroup join
- If the app ever has lists it could not join, Thread.sleep would
  delay every single join attempt by 2 seconds. This stacks up fast.
  Further, all the work was done on the UI thread, which froze the UI.
- The problem was made a little worse by the cross user collection
  sharing bug.

Change-Id: I4c98e877c1b94cfaf1f9ef84be814c8a13dc5ff5
2 files changed
tree: e6128e096a7633d64b31853b9356c0b54b203a00
  1. app/
  2. gradle/
  3. .gitignore
  4. .jshintignore
  5. .jshintrc
  6. AUTHORS
  7. build.gradle
  8. CONTRIBUTING.md
  9. CONTRIBUTORS
  10. gradle.properties
  11. gradlew
  12. gradlew.bat
  13. LICENSE
  14. PATENTS
  15. README.md
  16. settings.gradle
  17. VERSION
README.md

TODOs demo: Syncbase and Firebase

This is a TODOs application for Android which uses either Firebase or Syncbase as a persistence layer.

Building & running

Switching between persistence layers

To switch between Firebase and Syncbase use: Build -> Select Build Variant and choose between the various options (e.g., firebaseDebug, syncbaseDebug etc.)

Firebase

The firebase app is at https://vivid-heat-7354.firebaseio.com/. Ross Wang and Alex Fandrianto manage the administration of the database.

WARNING: There is no authentication required in this demo, and the TODO list is global, accessible to all. In a real TODOs app this would not be the case of course. In the mean time, don't put anything sensitive there!