NOTE
The GDK sample code in this repository is a couple of months old, and they are currently not being maintained.
~Harry, 2/13/2014
Google Glass GDK Playground
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.
Frequently Asked Questions
- 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.
API Demo
GDK Live Card Sample Code
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.
GDK Touch Gesture Sample Code
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
GDK Voice Input Sample Code
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.
GDK Camera Sample Code
This GDK demo app illustrates how to use Glass camera to take pictures and display the photos on LiveCard.
GDK Location Sample Code
This example app uses the Android LocationManager
API
to display the user's dynamic location on the LiveCard.
GDK Sensor Sample Code
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.
GDK Tutorials
Coming soon...
Google Glass Sample Apps
Coming soon...