Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Google Glass Development
David Vávra
May 23, 2014
Technology
0
44
Google Glass Development
David Vávra
May 23, 2014
Tweet
Share
More Decks by David Vávra
See All by David Vávra
Doze Mode & App Standby in Android M
davidvavra
0
180
Android TV development
davidvavra
0
66
WearSquare: Introduction to Android Wear Design & Development
davidvavra
0
57
Android Wear Development
davidvavra
2
65
Other Decks in Technology
See All in Technology
#awsbasics [LT] サーバレスECにおける Step Functions の使い方
miu_crescent
0
840
大声で伝えたい!定時に帰る方法
sbtechnight
0
230
ジョブ管理システムをAWS Step Functionsに移行する時の勘所
non97
0
490
AWS CLI でやってみる ~ AWS Hands-on for Beginners ECS ハンズオン ~
kentosuzuki
1
460
You're M̶u̶t̶e̶d̶ Rooted
patrickwardle
0
540
Micro frontends and micro services
kashif98
0
140
ソフトバンクでのMECの取り組みについて
sbtechnight
0
320
第22回 MLOps 勉強会:みてねのMLOps事情
tonouchi510
1
890
Power BI のうらがわ
hanaseleb
1
140
フィンテック養成勉強会#24
finengine
0
330
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
10
19k
Djangoで組織とユーザーの権限管理をやってみよう #devio2022
seiichi1101
0
390
Featured
See All Featured
Designing for humans not robots
tammielis
241
24k
Six Lessons from altMBA
skipperchong
14
1.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
27
1.6k
Streamline your AJAX requests with AmplifyJS and jQuery
dougneiner
127
8.5k
Designing with Data
zakiwarfel
91
4k
The Pragmatic Product Professional
lauravandoore
19
3.1k
Principles of Awesome APIs and How to Build Them.
keavy
113
15k
Building a Scalable Design System with Sketch
lauravandoore
448
30k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
Ruby is Unlike a Banana
tanoku
91
9.3k
Bash Introduction
62gerente
598
210k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
173
8.6k
Transcript
David Vávra, Inmite Development for using Android GDK
None
None
None
None
None
None
None
None
None
None
None
None
Hardware
Demo time
4 principles of Glassware design
Design for Glass
Don’t get in the way
Keep it relevant
Avoid the unexpected
User interface: Timeline card • 640x360 px • black background,
given font sizes & colors • bundles
User interface - timeline
Immersions
Menus
None
GDK • Full API level 19 • no touch •
resolution 640x360 • no emulator • same API for Speech, Camera, Navigation, Browser, Location, Sensors
None
<style name="CustomTheme" parent= "@android:style/Theme.DeviceDefault" /> android { compileSdkVersion "Google Inc.:Glass
Development Kit Preview:19" …}
Card card1 = new Card(context); card1.setText("This card has a footer.");
card1.setFootnote("I'm the footer!"); View card1View = card1.getView();
res/xml/my_voice_trigger.xml <?xml version="1.0" encoding="utf-8"?> <trigger keyword="start my app" /> <uses-permission
android:name="com.google.android.glass.permission. DEVELOPMENT"/> <activity | service ...> <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/my_voice_trigger" /> </activity | service> AndroidManifest.xml
None
Menu The same onCreateOptionsMenu from Android SDK public class MainActivity
extends Activity { // ... @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { openOptionsMenu(); return true; } return super.onKeyDown(keyCode, event); } }
Live card
Creating live cards TimelineManager tm = TimelineManager.from(context); mLiveCard = tm.createLiveCard(LIVE_CARD_TAG);
mLiveCard.setViews(new RemoteViews(context.getPackageName(), R.layout.card_text)); mLiveCard.publish(LiveCard.PublishMode.REVEAL); // or SILENT
Updating live cards mRemoteViews.setTextViewText(R.id.text, "new message"); mLiveCard.setViews(mRemoteViews); Removing live cards
mLiveCard.unpublish();
Let’s dive into Glasquare code http://github.com/destil/glasquare
Distribution • adb install • MyGlass ◦ checklist: https://developers.google.com/glass/distribute/checklist ◦
design ◦ voice commands ◦ assets
None
Documentation • https://developers.google.com/glass • https://github.com/googleglass • http://stackoverflow. com/questions/tagged/google-gdk • https://code.google.com/p/google-glass-
api/issues/list
Q + A Follow me: http://google.com/+DavidVávra http://twitter.com/destil