SlideShare a Scribd company logo
1 of 27
Dinesh Ganesan
GDG Baltimore V 1.0
Development – Code labs
WHAT IS GLASS?
Wearable computing device that interacts with
human digital information through natural
language voice commands
Experience the glass. Slide# 1.
What it can do?
Slide# 2.
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?
Application Model.
Experience the glass.
Slide# 4.
1. GDK : Similar to iOS/Android Native App
2. Mirror API: Similar to mobile web
User Experience.
Experience the timeline card. Slide# 5.
Time Location Engagement
Relevant Natural Language
Gesture
Gestures
Experience the timeline card.
Tap Wake up
Natural Language
Wink
Slide# 6.
Mirror vs GDK
Learn more Slide# 7.
Mirror API Dev
Quick start : Mirror API Slide# 8.
Required Tools :
 Cloud based Mirror APIs.
 Objects
 Timeline
 Subscriptions
 Locations
 Contacts
 JSON
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.
Mirror Apps
Slide# 10.
GDK Dev : Step1
Slide#
 Install Android SDK
 Subscribe GDK thru SDK Manager
 Turn on ‘Debug’ in Glass
SDK Quickstart 11
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
GDK Dev : Step3
Slide#
 Create a new voice command.
 Handling Gesture event.
 Defining Context Menu.
GDK DemoApps 13
GDK Dev : Step4
Slide#
 Navigation
 How to set the Navigation mode.
GDK DemoApps 14
GDK
Code
SnippetsExperience Voice Command / Touch capability.
Slide# 15.
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.
Step #6. Launch Android Eclipse
Step
#6
Yay! My 1st Glass – GDK project Created
Slide# 17.
Step #6. Launch Android Eclipse
Step
#6
Yay! My 1st Glass – GDK project Created
Slide# 18
“ok glass show a compass”
Slide# 19.
Slide# 20
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.
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
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
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.
File Name : mainActivity.java
3. Finally implement the handlers.
res/xml/<my_voice_trigger>.xml
Slide# 25
More info >>
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.

More Related Content

What's hot

Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippines
kerwin1116
 

What's hot (19)

Android wear design principles
Android wear design principles Android wear design principles
Android wear design principles
 
Android study jams
Android study jamsAndroid study jams
Android study jams
 
Ppt of tutorial android app
Ppt of tutorial android appPpt of tutorial android app
Ppt of tutorial android app
 
Cs4hs android-01hello
Cs4hs android-01helloCs4hs android-01hello
Cs4hs android-01hello
 
Week 1 - Android Study Jams
Week 1 - Android Study JamsWeek 1 - Android Study Jams
Week 1 - Android Study Jams
 
Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)
 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
 
Starting Native Development on Google Glass
Starting Native Development on Google GlassStarting Native Development on Google Glass
Starting Native Development on Google Glass
 
デブサミ2012 appinventorユーザー会
デブサミ2012 appinventorユーザー会デブサミ2012 appinventorユーザー会
デブサミ2012 appinventorユーザー会
 
Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippines
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
An Overview of Google Glass GDK
An Overview of Google Glass GDKAn Overview of Google Glass GDK
An Overview of Google Glass GDK
 
Debugging and Tuning Mobile Web Sites with Modern Web Browsers
Debugging and Tuning Mobile Web Sites with Modern Web BrowsersDebugging and Tuning Mobile Web Sites with Modern Web Browsers
Debugging and Tuning Mobile Web Sites with Modern Web Browsers
 
techSocAndroid1
techSocAndroid1techSocAndroid1
techSocAndroid1
 
Infinum iOS Talks #1 - Becoming an iOS developer swiftly by Vedran Burojevic
Infinum iOS Talks #1 - Becoming an iOS developer swiftly by Vedran BurojevicInfinum iOS Talks #1 - Becoming an iOS developer swiftly by Vedran Burojevic
Infinum iOS Talks #1 - Becoming an iOS developer swiftly by Vedran Burojevic
 
Effective Android UI - English
Effective Android UI - EnglishEffective Android UI - English
Effective Android UI - English
 
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
 
Roadmap to Development
Roadmap to DevelopmentRoadmap to Development
Roadmap to Development
 
Android chat in the cloud
Android chat in the cloudAndroid chat in the cloud
Android chat in the cloud
 

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

Reverse engineering Java et contournement du mécanisme de paiement inapp Android
Reverse engineering Java et contournement du mécanisme de paiement inapp AndroidReverse engineering Java et contournement du mécanisme de paiement inapp Android
Reverse engineering Java et contournement du mécanisme de paiement inapp Android
JUG Lausanne
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
BijayKc16
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
Doncho Minkov
 

Similar to Google Glass - An Intro presentation to conduct code lab events. (20)

AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 
Android Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps DevelopmentAndroid Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps Development
 
Android - Getting started with Android
Android - Getting started with Android Android - Getting started with Android
Android - Getting started with Android
 
Easy steps to develop android application (tutorial)
Easy steps to develop android application (tutorial)Easy steps to develop android application (tutorial)
Easy steps to develop android application (tutorial)
 
Reverse engineering Java et contournement du mécanisme de paiement inapp Android
Reverse engineering Java et contournement du mécanisme de paiement inapp AndroidReverse engineering Java et contournement du mécanisme de paiement inapp Android
Reverse engineering Java et contournement du mécanisme de paiement inapp Android
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
Android Stsucture
Android StsuctureAndroid Stsucture
Android Stsucture
 
Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5
 
Push it! How to use Google Cloud Messaging in your Android App
Push it! How to use Google Cloud Messaging in your Android AppPush it! How to use Google Cloud Messaging in your Android App
Push it! How to use Google Cloud Messaging in your Android App
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
 
Ionic - Revolutionizing Hybrid Mobile Application Development
Ionic - Revolutionizing Hybrid Mobile Application DevelopmentIonic - Revolutionizing Hybrid Mobile Application Development
Ionic - Revolutionizing Hybrid Mobile Application Development
 
Android Study Jam - Introduction
Android Study Jam - IntroductionAndroid Study Jam - Introduction
Android Study Jam - Introduction
 
Android tutorial1
Android tutorial1Android tutorial1
Android tutorial1
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Nativescript with angular 2
Nativescript with angular 2Nativescript with angular 2
Nativescript with angular 2
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Developing for Google Glass
Developing for Google GlassDeveloping for Google Glass
Developing for Google Glass
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

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

  • 1. Dinesh Ganesan GDG Baltimore V 1.0 Development – Code labs
  • 2. WHAT IS GLASS? Wearable computing device that interacts with human digital information through natural language voice commands Experience the glass. Slide# 1.
  • 3. What it can do? Slide# 2.
  • 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. Application Model. Experience the glass. Slide# 4. 1. GDK : Similar to iOS/Android Native App 2. Mirror API: Similar to mobile web
  • 6. User Experience. Experience the timeline card. Slide# 5. Time Location Engagement Relevant Natural Language Gesture
  • 7. Gestures Experience the timeline card. Tap Wake up Natural Language Wink Slide# 6.
  • 8. Mirror vs GDK Learn more Slide# 7.
  • 9. Mirror API Dev Quick start : Mirror API Slide# 8. Required Tools :  Cloud based Mirror APIs.  Objects  Timeline  Subscriptions  Locations  Contacts  JSON
  • 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.
  • 12. GDK Dev : Step1 Slide#  Install Android SDK  Subscribe GDK thru SDK Manager  Turn on ‘Debug’ in Glass SDK Quickstart 11
  • 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. GDK Dev : Step3 Slide#  Create a new voice command.  Handling Gesture event.  Defining Context Menu. GDK DemoApps 13
  • 15. GDK Dev : Step4 Slide#  Navigation  How to set the Navigation mode. GDK DemoApps 14
  • 16. GDK Code SnippetsExperience Voice Command / Touch capability. Slide# 15.
  • 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. Step #6. Launch Android Eclipse Step #6 Yay! My 1st Glass – GDK project Created Slide# 17.
  • 19. Step #6. Launch Android Eclipse Step #6 Yay! My 1st Glass – GDK project Created Slide# 18
  • 20. “ok glass show a compass” Slide# 19.
  • 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. 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. 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. 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. File Name : mainActivity.java 3. Finally implement the handlers. res/xml/<my_voice_trigger>.xml Slide# 25 More info >>