commit | ae90a58faf889200174ece4c4dcf78c5beb674e2 | [log] [tgz] |
---|---|---|
author | Alex Fandrianto <alexfandrianto@google.com> | Thu May 05 10:45:35 2016 -0700 |
committer | Alex Fandrianto <alexfandrianto@google.com> | Thu May 05 10:45:35 2016 -0700 |
tree | e6128e096a7633d64b31853b9356c0b54b203a00 | |
parent | e78525b106d2d45970020ac3ccf0907fe0bf2b33 [diff] |
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
This is a TODOs application for Android which uses either Firebase or Syncbase as a persistence layer.
To switch between Firebase and Syncbase use: Build -> Select Build Variant
and choose between the various options (e.g., firebaseDebug
, syncbaseDebug
etc.)
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!