The following samples are available to help you build apps for Glass Enterprise Edition 2.
Card sample
The following sample demonstrates how to build a basic UI:
![Sample text card UI](https://developers.google.cn/static/glass-enterprise/images/card_sample_4.png?authuser=7)
![Sample column card UI](https://developers.google.cn/static/glass-enterprise/images/card_sample_5.png?authuser=7)
![Sample menu UI](https://developers.google.cn/static/glass-enterprise/images/card_sample_6.png?authuser=7)
Camera2 sample
The following sample demonstrates how to take photos and videos with the Camera2 API:
![Take picture](https://developers.google.cn/static/glass-enterprise/images/camera_sample_4.png?authuser=7)
![Record video](https://developers.google.cn/static/glass-enterprise/images/camera_sample_5.png?authuser=7)
![Video recording](https://developers.google.cn/static/glass-enterprise/images/camera_sample_6.png?authuser=7)
Gallery sample
The following sample demonstrates how to browse and delete photos and videos:
![Gallery images](https://developers.google.cn/static/glass-enterprise/images/gallery_sample_1.png?authuser=7)
![Full screen image](https://developers.google.cn/static/glass-enterprise/images/gallery_sample_2.png?authuser=7)
![Delete menu option](https://developers.google.cn/static/glass-enterprise/images/gallery_sample_3.png?authuser=7)
QR code scanner sample
The following sample demonstrates how to scan QR codes with the camera. It uses CameraX API and ZXing library to do so.
![Gallery images](https://developers.google.cn/static/glass-enterprise/images/qr_scanner_sample_1.png?authuser=7)
![Full screen image](https://developers.google.cn/static/glass-enterprise/images/qr_scanner_sample_2.png?authuser=7)
![Delete menu option](https://developers.google.cn/static/glass-enterprise/images/qr_scanner_sample_3.png?authuser=7)
See the QR Code Scanner Sample
Voice Recognition sample
The following sample app demonstrates the built-in voice recognition functionality.
![Voice Recogntion app main screen](https://developers.google.cn/static/glass-enterprise/images/voice_recognition_1.png?authuser=7)
![Voice Recogntion app capture voice screen](https://developers.google.cn/static/glass-enterprise/images/voice_recognition_2.png?authuser=7)
![Voice Recogntion app main screen with results](https://developers.google.cn/static/glass-enterprise/images/voice_recognition_3.png?authuser=7)
See the Voice Recognition Sample
Notes sample
The following sample app demonstrates the built-in voice commands functionality and how to use it with the built-in voice recognition functionality.
![Voice Recogntion app main screen](https://developers.google.cn/static/glass-enterprise/images/voice_commands_1.png?authuser=7)
![Voice Recogntion app capture voice screen](https://developers.google.cn/static/glass-enterprise/images/voice_commands_2.png?authuser=7)
![Voice Recogntion app main screen with results](https://developers.google.cn/static/glass-enterprise/images/voice_commands_3.png?authuser=7)
Voice commands reloading sample
The following sample app demonstrates how to reload voice commands and how to enable debug mode for voice commands.
![Voice Recogntion app main screen](https://developers.google.cn/static/glass-enterprise/images/voice_commands_reloading_1.png?authuser=7)
![Voice Recogntion app capture voice screen](https://developers.google.cn/static/glass-enterprise/images/voice_commands_reloading_2.png?authuser=7)
![Voice Recogntion app main screen with results](https://developers.google.cn/static/glass-enterprise/images/voice_commands_reloading_3.png?authuser=7)
See the Voice Commands Reloading Sample
Gesture detector sample
Basic navigation on Glass Enterprise Edition 2 device consists of detecting and responding to gesture events on the touchpad. Inputs and sensors page contains more information about it. Review this sample for implementation details.
See the Gesture Detector Sample
WebRTC sample
An example call center application that showcases video conferencing using WebRTC