11. User Experience
Truly Wearable Computing
Less than 46 ounces
Hands-free Information Access
Voice interaction, Ego-vision camera
Intuitive User Interface
Touch, Gesture, Speech, Head Motion
Access to all Google Services
Map, Search, Location, Messaging, Email, etc
22. Hello World
//called initially at the start of the Processing sketch!
void setup() {!
size(640, 360);!
background(0);!
} !
!
//called every frame to draw output!
void draw() {!
background(0);!
//draw a white text string showing Hello World!
fill(255);!
text("Hello World", 50, 50);!
}!
24. Hello World Image
PImage img; // Create an image variable!
!
void setup() {!
size(640, 360);!
//load the ok glass home screen image!
img = loadImage("okGlass.jpg"); // Load the image into
the program !
}!
!
void draw() {!
// Displays the image at its actual size at point (0,0)!
image(img, 0, 0);!
}!
29. Sensors
Ketai Library for Processing
https://code.google.com/p/ketai/
Support all phone sensors
GPS, Compass, Light, Camera, etc
Include Ketai Library
import ketai.sensors.*;!
KetaiSensor sensor;!
30. Using Sensors
Setup in Setup( ) function
sensor = new KetaiSensor(this);!
sensor.start();!
sensor.list();
Event based sensor reading
void onAccelerometerEvent(…)!
{!
accelerometer.set(x, y, z);!
}!
36. 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
37. 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/
38. 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
39. Mirror API based Web App
Glassware Web app
3. Insert a static card
User sees the card
40. Develop with Mirror API
Create a Google APIs Console project
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
46. GDK
Glass Development Kit
Android 4.0.3 ICS + Glass specific APIs
Use standard Android Development Tools
47. GDK
GDK add-on features
Timeline and cards
Menu and UI
Touch pad and gesture
Media (sound, camera and voice input)
48. 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