/gdk-timer-sample

Draft Mindfulness Glass BioBeats Project

Primary LanguageJavaApache License 2.0Apache-2.0

Timer

This sample inserts a live card to the left of the Glass clock that displays a timer. Tapping the live card presents a menu with options that are displayed according to the state of the timer:

  • Set timer: set the time for the timer
  • Start: start the timer
  • Pause: pause the timer
  • Resume: resume the timer
  • Reset: reset the timer
  • Change timer: change the time of the timer
  • Stop: remove the timer from the timeline

Getting started

Check out our documentation to learn how to get started on https://developers.google.com/glass/develop/gdk

Running the sample on Glass

You can use your IDE to compile and install the sample or use adb on the command line:

$ adb install -r TimerSample.apk

To start the sample, say "ok glass, start a timer" from the Glass clock screen or use the touch menu.