desarrollo de apps para google glass | antonio garcía | itglas
DESCRIPTION
TRANSCRIPT
![Page 1: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/1.jpg)
![Page 2: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/2.jpg)
![Page 3: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/3.jpg)
What are the “Wearable Technologies”?
![Page 4: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/4.jpg)
Watches
Pebble (159 USD)
Limmex Senator (649 USD)
SONY SmartWatch (179 USD) SAMSUNG Galaxy Gear Smartwatch (259 USD)
![Page 5: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/5.jpg)
Glasses
Liquid Image (199 USD)
Buhel SpeakGlasses (210 USD)
Liquid Image WIFI (399 USD) Liquid full HD (299 USD)
![Page 6: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/6.jpg)
Clips On - Pocket
Blood Pressure(129 USD) Back posture (149 USD) Golf swing (130 USD)
Whitings Pulse (99 USD) Fitbit Activity (60 USD) Helmet (159 USD)
![Page 7: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/7.jpg)
Wristbands
Fitbit (99 USD) ICEdot Band (15 USD) Phyode (159 USD)
Measures your mental state, agility and your ANS age
![Page 8: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/8.jpg)
Glasses to come
Epiphany EyeWear 299 USD
![Page 9: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/9.jpg)
Glasses to come
pre-order for $2,985
![Page 10: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/10.jpg)
Glasses to come
Recon JET 599 USD
![Page 11: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/11.jpg)
Glasses to come
VUZIX 1.500 USD
![Page 12: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/12.jpg)
Glasses to come
Telepathy One
![Page 13: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/13.jpg)
Glasses to come
![Page 14: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/14.jpg)
Glasses to come
![Page 15: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/15.jpg)
Glasses to come
SAMSUNG Patents
![Page 16: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/16.jpg)
Glasses to come
Apple
![Page 17: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/17.jpg)
What is Google Glass?
![Page 18: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/18.jpg)
Google Glass
![Page 19: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/19.jpg)
Google Glass
![Page 20: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/20.jpg)
Google Glass
![Page 21: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/21.jpg)
Display High resolution display is the equivalent of a 25 inch high definition screen from eight feet away. Camera Photos - 5 MP Videos - 720p Audio Bone Conduction Transducer Connectivity Wifi - 802.11b/g Bluetooth Storage 12 GB of usable memory, synced with Google cloud storage. 16 GB Flash total.
![Page 22: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/22.jpg)
Battery One full day of typical use. Some features, like Hangouts and video recording, are more battery intensive. Charger Included Micro USB cable and charger. While there are thousands of Micro USB chargers out there, Glass is designed and tested with the included charger in mind. Use it and preserve long and prosperous Glass use. Compatibility Any Bluetooth-capable phone. The MyGlass companion app requires Android 4.0.3 (Ice Cream Sandwich) or higher. MyGlass enables GPS and SMS messaging.
![Page 23: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/23.jpg)
Google Glass Sensors
![Page 24: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/24.jpg)
Google Glass Sensors
Accelerometer Gravity Gyroscope Light Linear acceleration Magnetic field Orientation (Deprecated) Rotation vector
Ambient temperature Pressure Proximity Relative humidity Temperature Not GPS (get GPS by a mobile connected to the glasses by bluetooth)
Supported Not Supported
![Page 25: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/25.jpg)
Previous concepts
![Page 26: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/26.jpg)
Timeline is a carousel of cards which are supposed to be around your head.
New gestures for the touchpad like: One finger: swipe left, swipe right, swipe down and tap Two fingers: swipe left, swipe right and tap Three fingers: tap
Cards are the unit of information in Google Glass. They can be categorized depending on where are the cars in the timeline, and how interactive they are.
New concepts for Google Glass
![Page 27: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/27.jpg)
Live cards appear in the present section of the timeline and display information that is relevant at the current time.
Immersions give you more ways to consume user input and create user interfaces. This allows you to create the most custom experience, but involves the most work.
Static cards appear in the past section of the timeline. They show information as pictures, notes, videos, etc.
Types of Cards for Google Glass
![Page 28: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/28.jpg)
Tools you need to develop apps for Google Glass
![Page 29: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/29.jpg)
Tools to develop apps
![Page 30: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/30.jpg)
GDK The Glass Development Kit (GDK) is an add-on to the Android SDK, that lets you build Glassware that runs directly on Glass.
In general, use the GDK if you need the following features:
![Page 31: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/31.jpg)
The Mirror API
![Page 32: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/32.jpg)
Setting the Developer Environment
![Page 33: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/33.jpg)
Configuring environment Get the Android 4.4.2 (API 19) SDK and Glass Development Kit Preview add-on from the Android SDK Manager
![Page 34: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/34.jpg)
Configuring environment On Glass, turn on USB debugging (Settings > Device Info > Turn on debug)
![Page 35: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/35.jpg)
Configuring environment
In Linux and Mac systems the detection of the glasses are automatic. In Windows systems you must install the driver by your own. In fact, you must modify the driver provided by Google for this system in order to make it work. Besides, to install the driver in a Windows 8 system you must disable the driver signature enforcement feature. The driver is in the folder: ..\sdk\extras\google\usb_driver
![Page 36: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/36.jpg)
Configuring environment Before your system detects the glasses, one message is sent to your glasses. It asks you to confirm whether you trust the computer that your glasses are connected to, or not. Once you confirm. The next step is to check out if your device is accesible, by typing: adb devices
![Page 37: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/37.jpg)
Making a simple helloworld app
![Page 38: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/38.jpg)
Helloworld app
1. Create a new Android project
![Page 39: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/39.jpg)
Helloworld app
2. Set the values for a new project
![Page 40: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/40.jpg)
Helloworld app
3. Uncheck «Create custom launcher icon»
![Page 41: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/41.jpg)
Helloworld app
4. Click next
![Page 42: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/42.jpg)
Helloworld app
5. Click finish
![Page 43: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/43.jpg)
Helloworld app
1. Delete any source code related with Fragment, in the MainActivity.java file 2. Check the android manifest. It must have this line: <uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" />
![Page 44: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/44.jpg)
Helloworld app 3. Define a trigger for our app: 3.1. Define the trigger: <trigger keyword="@string/glass_voice_trigger" /> <string name="glass_voice_trigger">Hello world</string> 3.2. Declare the trigger in the android manifest for the main activity:
<intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter>
<meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger" />
![Page 45: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/45.jpg)
Helloworld app
4. Define a style.xml for our app: 4.1. Define a new style in styles.xml file: <style name="MenuTheme" parent="@android:style/Theme.DeviceDefault"> <item name="android:windowBackground">@android:color/transparent </item> <item name="android:colorBackgroundCacheHint">@null </item> <item name="android:windowIsTranslucent">true </item> <item name="android:windowAnimationStyle">@null </item> </style> 4.2. Set the style of your activity to the new one: android:theme="@style/MenuTheme"
![Page 46: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/46.jpg)
Helloworld app
5. Set the content of our main activity to a card view 5.1. Import Card class: import com.google.android.glass.app.Card; 5.2. Declare the contents of the card in string.xml file:
<string name="card_text">Hello Smashtech!!!</string> <string name="card_footnote">Thanks for comming</string>
5.3. Set the card view to the content of the main activity:
Card card = new Card(this); card.setText(R.string.card_text); card.setFootnote(R.string.card_footnote); setContentView(card.getView());
![Page 47: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/47.jpg)
Helloworld app 6. Run the app as an Android application 7. You will see the Android Device Chooser window, that will allow us to pick up the glasses where we want to run the app:
![Page 48: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/48.jpg)
Helloworld app
8. And there you have it:
![Page 49: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/49.jpg)
References
https://developers.google.com/glass/ http://www.itglas.com/
![Page 50: Desarrollo de apps para Google Glass | Antonio García | Itglas](https://reader034.vdocuments.net/reader034/viewer/2022051613/54c87f9b4a79590d7f8b45b6/html5/thumbnails/50.jpg)
Thank you
w w w . i t g l a s . e s