The Glass Class - Tutorial1 - Introduction to Glassware Development

2,504 views
2,252 views

Published on

Tutorial 1: Introduction to Glassware Development
The Glass Class at HIT Lab NZ
Learn how to program and develop for Google Glass.
https://www.youtube.com/watch?v=dTYRtbP5xkg&list=PLsIGb72j1WOlLFoJqkhyugDv-juTEAtas

http://arforglass.org
http://www.hitlabnz.org

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,504
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
130
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The Glass Class - Tutorial1 - Introduction to Glassware Development

  1. 1. The Glass Class: Introduction to Glassware Development with Mirror API & GDK July 7th – 11th 2014 Mark Billinghurst, Gun Lee HIT Lab NZ University of Canterbury
  2. 2. An Introduction to Glassware Development with Mirror API & GDK Gun Lee * Images in the slides are from variety of sources, including http://developer.android.com and http://developers.google.com/glass
  3. 3. Glassware  https://glass.google.com/glassware
  4. 4. Timeline Metaphor
  5. 5. A Card in the Timeline
  6. 6. Glassware and Timeline
  7. 7. Glassware and Timeline  Static Cards  Static content with text, HTML, images, and (link to) video.  e.g. notification messages, news clip  Live Cards  Dynamic content updated frequently.  e.g. compass, timer  Immersions  Takes over the whole control, out from timeline.  e.g. interactive game
  8. 8. Glassware Development  Mirror API  Server programming, online/web application  Static cards / timeline management  GDK  Android programming, Java (+ C/C++)  Live cards & Immersions  https://developers.google.com/glass/
  9. 9. Mirror API  REST API  Java servlet, PHP, Go, Python, Ruby, .NET  Timeline based apps  Static cards - Text, HTML, media attachment (image & video) - Standard and custom menu items  Manage timeline - Subscribe to timeline notifications - Sharing with contacts - Location based services
  10. 10. Mirror API based Web App 3. Insert a static card User sees the card Glassware Web app https://developers.google.com/glass/develop/mirror/stories
  11. 11. https://developers.google.com/glass/develop/mirror/stories
  12. 12. https://developers.google.com/glass/develop/mirror/stories
  13. 13. Develop with Mirror API  Create a project on Google APIs Console  Prepare a web server  https callback for OAuth 2.0  Minimum storage for credentials  Create a web application  Java servlet, PHP, Go, Python, Ruby, .NET  Implement Oauth 2.0 authentication  Use Mirror API to make REST API calls - Wrapper classes/methods provided
  14. 14. Mirror API in Raw HTTP
  15. 15. Mirror API  Java  Python  PHP
  16. 16. Example
  17. 17. Example  https://hello-glass-mirror.appspot.com
  18. 18. Example  https://hello-glass-mirror.appspot.com
  19. 19. Example  https://hello-glass-mirror.appspot.com
  20. 20. Example On your Glass
  21. 21. GDK  Glass Development Kit  Android 4.4.2 + Glass specific APIs  Use standard Android Development Tools
  22. 22. GDK  GDK add-on features  Timeline and cards  Menu and UI  Touch pad and gesture  Media (sound, camera and voice input)
  23. 23. Live Cards vs. Immersions  Live cards display frequently updated information to the left of the Glass clock.  Integrate rich content into the timeline  Simple text/images to full-blown 3D graphics  Immersions let you build a user experience outside of the timeline.  Build interactive experiences  Extra control, less user input constraints
  24. 24. Live Cards
  25. 25. Immersions
  26. 26. Live Cards vs. Immersions
  27. 27. Develop with GDK  Android 4.4.2 (API 19) GDK Preview from the Android SDK Manager.  Project settings:  Minimum and Target SDK Versions: 19  Compile with: GDK Preview  Theme: None (allows the Glass theme to be applied.)  GDK samples  File > New Project > Android Sample Project  On Glass, turn on USB debugging  Settings > Device Info > Turn on debug
  28. 28. Example  Launch with voice trigger  Android App with a full-screen Activity  No theme (Glass system theme applied.)  Handle touch input
  29. 29. Example
  30. 30. Example
  31. 31. Summary  Use Mirror API if you need ...  Use GDK if you need ...  Or use both
  32. 32. More Information  Website  https://developers.google.com/glass  http://arforglass.org  http://www.hitlabnz.org  Gun Lee  gun.lee@hitlabnz.org  Mark Billinghurst  mark.billinghurst@hitlabnz.org

×