SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Basic of the Google Glass programming
April 7, 2014
Miki Yutani
Strategic Technology Center, TIS Inc.
2
What is Google Glass?
3
Basic operations
Power button (rear)
4
Basic operations
Touchpad
5
Basic operations
Tap on touchpad
6
Basic operations
Swipe (forward)
7
Basic operations
Swipe (backward)
8
Basic operations
Cancel or break out
9
Basic operations
Voice
command
10
Basic operations
Wink
11
Basic operations
Head detection
12
Home Screen
Voice command
(or tap …)
13
Home Screen
Forward Backward
14
Timeline
Forward Backward
Cards
Timeline
Tap or
voice command
Details or option menu
15
Getting started with google glass
 your Google+ and gmail account
 Setup wifi
 https://glass.google.com/setup
Take a picture by glass
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
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
18
Mirror API
19
Mirror API
www.googleapis.com
My web site
accounts.google.com
2.OAuth
4.Post (json)
5.Notification
3.Authenticate
1.Operate
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
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
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();
}
}
23
Glass Development Kit (GDK)
$ cat AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.blackaplysia.helloglass"
android:versionCode="1"
android:versionName="1.0">
<application android:label="@string/app_name“
android:icon=“@drawable/ic_launcher”>
<activity android:name=“com.blackaplysia.helloglass.HelloGlassActivity”
android:label=“@string/app_name”
android:icon=“@drawable/ic_launcher”>
<intent-filter>
<action android:name=“android.intent.action.MAIN” />
<action android:name=“com.google.android.glass.action.VOICE_TRIGGER” />
</intent-filter>
<meta-data android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/hello" />
</activity>
</application>
</manifest>
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
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

Mais conteúdo relacionado

Semelhante a Basics of the Google Glass programming

Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5Oswald Campesato
 
eBook - Developing Applications for Google Glass
eBook - Developing Applications for Google Glass eBook - Developing Applications for Google Glass
eBook - Developing Applications for Google Glass Unvired Inc.
 
Google Glasses Integration with SAP
Google Glasses Integration with SAPGoogle Glasses Integration with SAP
Google Glasses Integration with SAPGh14Cc10
 
The Glass Class - Tutorial 3 - Android and GDK
The Glass Class - Tutorial 3 - Android and GDKThe Glass Class - Tutorial 3 - Android and GDK
The Glass Class - Tutorial 3 - Android and GDKGun Lee
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Starting Native Development on Google Glass
Starting Native Development on Google GlassStarting Native Development on Google Glass
Starting Native Development on Google GlassLance Nanek
 
Getting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDKGetting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDKZi Yong Chua
 
Google Glass Meetup 3/3 - 8 Janvier 2014
Google Glass Meetup 3/3 - 8 Janvier 2014Google Glass Meetup 3/3 - 8 Janvier 2014
Google Glass Meetup 3/3 - 8 Janvier 2014Glasscamp
 
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)eMan s.r.o.
 
Breaking Glass: Glass development without Glass
Breaking Glass: Glass development without GlassBreaking Glass: Glass development without Glass
Breaking Glass: Glass development without GlassOstap Andrusiv
 
Introduction to google glass
Introduction to google glassIntroduction to google glass
Introduction to google glassAnees Haider
 
An Overview of Google Glass GDK
An Overview of Google Glass GDKAn Overview of Google Glass GDK
An Overview of Google Glass GDKDave Slocombe
 
Google Glass Development Kit - Developer Zone
Google Glass Development Kit - Developer ZoneGoogle Glass Development Kit - Developer Zone
Google Glass Development Kit - Developer ZoneUtpal Betai
 
Synapseindia android apps intro to android development
Synapseindia android apps  intro to android developmentSynapseindia android apps  intro to android development
Synapseindia android apps intro to android developmentSynapseindiappsdevelopment
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidbantyder
 
Profiling Android Applications
Profiling Android ApplicationsProfiling Android Applications
Profiling Android Applicationshubx
 

Semelhante a Basics of the Google Glass programming (20)

Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5Google Glass, the GDK, and HTML5
Google Glass, the GDK, and HTML5
 
eBook - Developing Applications for Google Glass
eBook - Developing Applications for Google Glass eBook - Developing Applications for Google Glass
eBook - Developing Applications for Google Glass
 
Google Glasses Integration with SAP
Google Glasses Integration with SAPGoogle Glasses Integration with SAP
Google Glasses Integration with SAP
 
The Glass Class - Tutorial 3 - Android and GDK
The Glass Class - Tutorial 3 - Android and GDKThe Glass Class - Tutorial 3 - Android and GDK
The Glass Class - Tutorial 3 - Android and GDK
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Starting Native Development on Google Glass
Starting Native Development on Google GlassStarting Native Development on Google Glass
Starting Native Development on Google Glass
 
Getting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDKGetting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDK
 
Google Glass Meetup 3/3 - 8 Janvier 2014
Google Glass Meetup 3/3 - 8 Janvier 2014Google Glass Meetup 3/3 - 8 Janvier 2014
Google Glass Meetup 3/3 - 8 Janvier 2014
 
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)
 
Breaking Glass: Glass development without Glass
Breaking Glass: Glass development without GlassBreaking Glass: Glass development without Glass
Breaking Glass: Glass development without Glass
 
Introduction to google glass
Introduction to google glassIntroduction to google glass
Introduction to google glass
 
An Overview of Google Glass GDK
An Overview of Google Glass GDKAn Overview of Google Glass GDK
An Overview of Google Glass GDK
 
Webinar on Google Android SDK
Webinar on Google Android SDKWebinar on Google Android SDK
Webinar on Google Android SDK
 
Developing for Google Glass
Developing for Google GlassDeveloping for Google Glass
Developing for Google Glass
 
Google Glass Development Kit - Developer Zone
Google Glass Development Kit - Developer ZoneGoogle Glass Development Kit - Developer Zone
Google Glass Development Kit - Developer Zone
 
Synapseindia android apps intro to android development
Synapseindia android apps  intro to android developmentSynapseindia android apps  intro to android development
Synapseindia android apps intro to android development
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Profiling Android Applications
Profiling Android ApplicationsProfiling Android Applications
Profiling Android Applications
 
Android
Android Android
Android
 
Android
Android Android
Android
 

Mais de Miki Yutani

Pmaj産学連携pmセミナー 171216
Pmaj産学連携pmセミナー 171216Pmaj産学連携pmセミナー 171216
Pmaj産学連携pmセミナー 171216Miki Yutani
 
OSSコンソーシアム総会 170710
OSSコンソーシアム総会 170710OSSコンソーシアム総会 170710
OSSコンソーシアム総会 170710Miki Yutani
 
Io taiフォーラム(油谷) 170608
Io taiフォーラム(油谷) 170608Io taiフォーラム(油谷) 170608
Io taiフォーラム(油谷) 170608Miki Yutani
 
Uec総合情報学特別講義資料 20170511
Uec総合情報学特別講義資料 20170511Uec総合情報学特別講義資料 20170511
Uec総合情報学特別講義資料 20170511Miki Yutani
 
日経Aiシンポジウム(油谷) 170309
日経Aiシンポジウム(油谷) 170309日経Aiシンポジウム(油谷) 170309
日経Aiシンポジウム(油谷) 170309Miki Yutani
 
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜Miki Yutani
 
UEC総合情報学特別講義資料(2016/5/6)
UEC総合情報学特別講義資料(2016/5/6)UEC総合情報学特別講義資料(2016/5/6)
UEC総合情報学特別講義資料(2016/5/6)Miki Yutani
 
ブロックチェーン入門〜ただしFinTechを除く〜
ブロックチェーン入門〜ただしFinTechを除く〜ブロックチェーン入門〜ただしFinTechを除く〜
ブロックチェーン入門〜ただしFinTechを除く〜Miki Yutani
 
IoTとAIが牽引するエンタープライズシステムの新展開
IoTとAIが牽引するエンタープライズシステムの新展開IoTとAIが牽引するエンタープライズシステムの新展開
IoTとAIが牽引するエンタープライズシステムの新展開Miki Yutani
 
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!Miki Yutani
 
人工知能技術のエンタープライズシステムへの適用
人工知能技術のエンタープライズシステムへの適用人工知能技術のエンタープライズシステムへの適用
人工知能技術のエンタープライズシステムへの適用Miki Yutani
 
HPCへの期待(NCAトップガンセミナー自己紹介)
HPCへの期待(NCAトップガンセミナー自己紹介)HPCへの期待(NCAトップガンセミナー自己紹介)
HPCへの期待(NCAトップガンセミナー自己紹介)Miki Yutani
 
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜Miki Yutani
 
企業情報システムにおける先進的な技術の活用
企業情報システムにおける先進的な技術の活用企業情報システムにおける先進的な技術の活用
企業情報システムにおける先進的な技術の活用Miki Yutani
 

Mais de Miki Yutani (14)

Pmaj産学連携pmセミナー 171216
Pmaj産学連携pmセミナー 171216Pmaj産学連携pmセミナー 171216
Pmaj産学連携pmセミナー 171216
 
OSSコンソーシアム総会 170710
OSSコンソーシアム総会 170710OSSコンソーシアム総会 170710
OSSコンソーシアム総会 170710
 
Io taiフォーラム(油谷) 170608
Io taiフォーラム(油谷) 170608Io taiフォーラム(油谷) 170608
Io taiフォーラム(油谷) 170608
 
Uec総合情報学特別講義資料 20170511
Uec総合情報学特別講義資料 20170511Uec総合情報学特別講義資料 20170511
Uec総合情報学特別講義資料 20170511
 
日経Aiシンポジウム(油谷) 170309
日経Aiシンポジウム(油谷) 170309日経Aiシンポジウム(油谷) 170309
日経Aiシンポジウム(油谷) 170309
 
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜
地域ニーズに沿ったAI活用への挑戦〜株式会社エルブズによる社会性エージェントサービス〜
 
UEC総合情報学特別講義資料(2016/5/6)
UEC総合情報学特別講義資料(2016/5/6)UEC総合情報学特別講義資料(2016/5/6)
UEC総合情報学特別講義資料(2016/5/6)
 
ブロックチェーン入門〜ただしFinTechを除く〜
ブロックチェーン入門〜ただしFinTechを除く〜ブロックチェーン入門〜ただしFinTechを除く〜
ブロックチェーン入門〜ただしFinTechを除く〜
 
IoTとAIが牽引するエンタープライズシステムの新展開
IoTとAIが牽引するエンタープライズシステムの新展開IoTとAIが牽引するエンタープライズシステムの新展開
IoTとAIが牽引するエンタープライズシステムの新展開
 
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!
SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!
 
人工知能技術のエンタープライズシステムへの適用
人工知能技術のエンタープライズシステムへの適用人工知能技術のエンタープライズシステムへの適用
人工知能技術のエンタープライズシステムへの適用
 
HPCへの期待(NCAトップガンセミナー自己紹介)
HPCへの期待(NCAトップガンセミナー自己紹介)HPCへの期待(NCAトップガンセミナー自己紹介)
HPCへの期待(NCAトップガンセミナー自己紹介)
 
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜
企業情報システムのブレークスルー 〜CPSプラットフォームの提案〜
 
企業情報システムにおける先進的な技術の活用
企業情報システムにおける先進的な技術の活用企業情報システムにおける先進的な技術の活用
企業情報システムにおける先進的な技術の活用
 

Basics of the Google Glass programming

  • 1. Basic of the Google Glass programming April 7, 2014 Miki Yutani Strategic Technology Center, TIS Inc.
  • 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
  • 19. 19 Mirror API www.googleapis.com My web site accounts.google.com 2.OAuth 4.Post (json) 5.Notification 3.Authenticate 1.Operate
  • 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(); } }
  • 23. 23 Glass Development Kit (GDK) $ cat AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.blackaplysia.helloglass" android:versionCode="1" android:versionName="1.0"> <application android:label="@string/app_name“ android:icon=“@drawable/ic_launcher”> <activity android:name=“com.blackaplysia.helloglass.HelloGlassActivity” android:label=“@string/app_name” android:icon=“@drawable/ic_launcher”> <intent-filter> <action android:name=“android.intent.action.MAIN” /> <action android:name=“com.google.android.glass.action.VOICE_TRIGGER” /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/hello" /> </activity> </application> </manifest>
  • 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