GDK Demo
is a collection of Glass Development Kit sample apps and example code.
You can quickly test new GDK API features using the sample Glassware.
Refer to the official GDK doc for more information on the Glass Development Kit. This repository contains (will contain) a variety of example programs and sample code, and other apps and libraries, which are built with GDK, or which are otherwise relevant to Glassware development.
You can build the demo Glassware using Gradle:
gradle clean build
You can install it on your Glass (if you have one) using adb
.
adb install -r build/apk/[app name]-release.apk
You can also import any of the Glassware projects into an IDE such as Android Studio.
- Should I fork the GDK Demo repository or just clone it?
- How do I "sync" my forked repo with GDK Demo?
Here's my thought on these questions: Git for GDK Glassware Developers.
The apidemo directory contains a number of Glass apps which demonstrate simple implementation of the LiveCard API. The apps, Live Card Demos 2 and 3, include sample code for updating the LiveCard content via "low frequency rendering" and "high freqency rendering", respectively.
This Glassware shows to how to implement the Touch Gesture input modes. The app can be started using the following voice input: OK, Glass. Start Gesture Demo
This demo Glassware uses the GDK Voice Input API. You can start the app via Voice Trigger, Start Voice Demo..., followed by the phrase dictate. This voice command opens a new activity, which includes the "dictation" function. Tap to start dictation.
This GDK demo app illustrates how to use Glass camera to take pictures and display the photos on LiveCard.
This example app uses the Android LocationManager
API
to display the user's dynamic location on the LiveCard.
The Sensor Demo directory includes a number of example apps for using Android Sensor APIs. For more information, refer to the GDK doc on Sensors.
Note: The README file in the apidemo directory contains a complete list of sample Glass apps.
Coming soon...
Coming soon...