15. 15
Getting started with google glass
your Google+ and gmail account
Setup wifi
https://glass.google.com/setup
Take a picture by glass
16. 16
Getting started with google glass
MyGlass
https://play.google.com/store/apps/details?
id=com.google.glass.companion
How to install the application in Japan
Download com.google.glass.companion.apk
from http://apps.evozi.com/apk-downloader/
Install apk in your tablet directly
adb install -r com.google.glass.companion.apk
Pair your glass and myglass application
17. 17
Glass application
Two API options of glass application
Mirror API
Google API: https://code.google.com/apis/console/
Platform independent
Common infrastructure
Built-in functionality
Glass Development Kit (GDK)
Android SDK
Real-time user interaction
Offline functionality
Access to hardware
20. 20
Mirror API
var params = {};
params.text = 'Hello, I am a Mirror API.';
params.notification = {};
params.notification.level = 'DEFAULT';
var data = JSON.stringify(params);
var options = {
host: 'www.googleapis.com',
path: '/mirror/v1/timeline',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': data.length,
'Authorization': 'Bearer ' + token
}
}
21. 21
Glass Development Kit (GDK)
$ android-sdk-linux/tools/android list
Available Android targets:
----------
id: 1 or "android-15"
Name: Android 4.0.3
(…)
----------
id: 2 or "Google Inc.:Glass Development Kit Sneak Peek:15"
Name: Glass Development Kit Sneak Peek
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Sneak peek of the Glass Development Kit
Based on Android 4.0.3 (API level 15)
Libraries:
* com.google.android.glass (gdk.jar)
APIs for Glass Development Kit Sneak Peek
Skins: WQVGA400, WVGA854, WSVGA, WXGA720, HVGA, WQVGA432, QV
ABIs : no ABIs.
(…)
22. 22
Glass Development Kit (GDK)
public class HelloGlassActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
TimelineManager timelineManager =
TimelineManager.from(this);
Card card1 = new Card(this);
card1.setText(R.string.hello_message);
card1.setFootnote(new Date().toString());
timelineManager.insert(card1);
finish();
}
}
24. 24
Glass Development Kit (GDK)
$ cat res/xml/hello.xml
<?xml version="1.0" encoding="utf-8"?>
<trigger keyword="@string/glass_voice_trigger" />
$ cat res/values/strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HelloGlass</string>
<string name="hello_message">Hello, I am a glassware.</string>
<string name="glass_voice_trigger">say hello</string>
</resources>
25. 25
Next …
Technical studies
Live card
Service model
Action menu
Voice command interface
QR-code oriented input
Immersion
A unique user experience
Enterprise platform services
Private web-based API set
Input by watch type devices