Google Glass - An Intro presentation to conduct code lab events.

945 views

Published on

Google Glass developer preso to conduct GDG Chapter or any other code lab events.

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

No Downloads
Views
Total views
945
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Google Glass - An Intro presentation to conduct code lab events.

  1. 1. Dinesh Ganesan GDG Baltimore V 1.0 Development – Code labs
  2. 2. WHAT IS GLASS? Wearable computing device that interacts with human digital information through natural language voice commands Experience the glass. Slide# 1.
  3. 3. What it can do? Slide# 2.
  4. 4. Slide# 3.  Integrated screen display – Semi Transparent.  Camera –to capture Video/Picture.  Mini-Projector – to display the visual.  Hidden battery inside the frame HOW DOES IT WORK?
  5. 5. Application Model. Experience the glass. Slide# 4. 1. GDK : Similar to iOS/Android Native App 2. Mirror API: Similar to mobile web
  6. 6. User Experience. Experience the timeline card. Slide# 5. Time Location Engagement Relevant Natural Language Gesture
  7. 7. Gestures Experience the timeline card. Tap Wake up Natural Language Wink Slide# 6.
  8. 8. Mirror vs GDK Learn more Slide# 7.
  9. 9. Mirror API Dev Quick start : Mirror API Slide# 8. Required Tools :  Cloud based Mirror APIs.  Objects  Timeline  Subscriptions  Locations  Contacts  JSON
  10. 10. Mirror - TestEnv Mirror Playground Slide# 9. Mirror Playground is the best online tool to validate the static card’s look and feel with JSON text. It has couple of pre-built templates for the beginners, and allows to create custom UI templates. All you need to do it just modify the JSON object with HTML tags.
  11. 11. Mirror Apps Slide# 10.
  12. 12. GDK Dev : Step1 Slide#  Install Android SDK  Subscribe GDK thru SDK Manager  Turn on ‘Debug’ in Glass SDK Quickstart 11
  13. 13. GDK Dev : Step2 Slide#  Create a sample ‘Compass’ app.  Create/Download samples from the url https://github.com/harrywye/gdk demo/tree/master/apidemo  Compilation success? GDK DemoApps 12
  14. 14. GDK Dev : Step3 Slide#  Create a new voice command.  Handling Gesture event.  Defining Context Menu. GDK DemoApps 13
  15. 15. GDK Dev : Step4 Slide#  Navigation  How to set the Navigation mode. GDK DemoApps 14
  16. 16. GDK Code SnippetsExperience Voice Command / Touch capability. Slide# 15.
  17. 17. Step #1. Launch Android Eclipse Step #2. Click File -> New -> Android Project Step #3. Select ‘Android Sample Project’ Step #4. Click ‘Next’ Step #5. Select ‘Glass Development Kit Sneak Peek” Step #4 Step #5 Slide# 16.
  18. 18. Step #6. Launch Android Eclipse Step #6 Yay! My 1st Glass – GDK project Created Slide# 17.
  19. 19. Step #6. Launch Android Eclipse Step #6 Yay! My 1st Glass – GDK project Created Slide# 18
  20. 20. “ok glass show a compass” Slide# 19.
  21. 21. Slide# 20
  22. 22. File Name : AndroidManifest.xml Q? What does it take to implement ‘Voice command’ in my App? 1. Add an intent filter. 2. Add a string in resvaluesstring.xml file. Slide# 21.
  23. 23. File Name : res/xml/compass_show.xml 3. Add a XML for voice trigger. res/xml/<my_voice_trigger>.xml Q? How do I change ‘show a compass’ command ? Ans : Just modify the text in string.xml, in this case, modify the value of show_compass_voice_trigger node value from ‘show a compass’ into something ‘open my compass’. Slide# 22
  24. 24. listen to take a note post an update show a compass start a run start a bike ride find a recipe record a recipe check me in start a stopwatch start a timer start a round of golf translate this learn a song tune an instrument play a game start a workout A. Use the Google recommended action commands. B. Use lower case alphabets C. Use action commands/verbs D. For apostrophe use ‘&apos’ - or avoid using it  Ex. What&apos;s on my wallet More info >> Slide# 23
  25. 25. File Name : mainActivity.java 1. Create a class variable at your main activity class. res/xml/<my_voice_trigger>.xml Slide# 24 2. Create a gesture detector object for the activity class and assign it to the mGestureDetector variable.
  26. 26. File Name : mainActivity.java 3. Finally implement the handlers. res/xml/<my_voice_trigger>.xml Slide# 25 More info >>
  27. 27. Thank You. Works Cited: http://www.google.com/glass/start/ http://www.google.com/glass/start/what-it-does/ https://developers.google.com/glass/tools-downloads/playground http://www.brillen-sehhilfen.de/en/googleglass/ @GDGBaltimore @dineshmd Slide# 26.

×