SlideShare une entreprise Scribd logo
1  sur  29
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Photo credit:
TheVerge.com
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

About myself
Chua Zi Yong
Developing Android for about 5 years
Founder of Stream Media
Founder of CodeAndroid Singapore
https://www.facebook.com/groups/codeandroid/
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What we will cover today on Glass

Introduction

Framework

Constraints
and
Possibility

Resources

This session will cover more on high level development
consideration – less emphasis on design and technical
discussions
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Basics of Google Glass
What is Glass?

Introduction

Framework

How to use Glass?

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Getting Started: https://developers.google.com/glass/

1) Take note of the design principles (very small screen!)
2) Choose your poison: Mirror API or GDK
3) Check out the samples and demos

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Developing with GDK

1) Run from Glass itself (offline!) unlike Mirror API
2) Based on Android 4.0.2, apps compiled as APK
3) Download using ADT (GDK Sneak Peak)

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

How is GDK related to Android development?

You can port your Android code and redesign the
interface for Glass, supposedly - At this stage, not everything
works, e.g. Play Services, default Share API

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

How is your app triggered?
- Command line (that’s how it was done in XE11)

- Voice trigger

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Voice trigger
-

Voice trigger is used to launch your app

-

You can use any commands during development

-

Glassware only support standard set of voice commands
(https://developers.google.com/glass/develop/gdk/input/voice)

-

You can submit new commands for approval (which you will
hear back in around 2 weeks)
Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Contextual voice commands
- Sometimes, voice commands is more than “Take a
Picture”

- Add voice prompt in voicetrigger.xml (“Ok glass, get
directions to, home”)
<?xml version="1.0" encoding="utf-8"?>
<trigger keyword="@string/glass_voice_trigger">
<input prompt="@string/glass_voice_prompt" />
</trigger>
Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

3 types of interfaces

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Static Cards – appear to the right of Timeline

Static cards

Right now it does nothing except “show you something”
- Please help upvote issue 320 https://code.google.com/p/google-glass-api/issues/detail?id=320

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Live Cards – appear to the left of Timeline
- “live” interaction and card can update itself
- User can interact with other cards while active

Live cards

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Immersions – takes over the whole screen
- Like a normal Android app
- Outside of Timeline
- User cannot interact with cards unless they close your app

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

How to use the Interfaces
- Immersion – standard Android app architecture
- Static Card – use TimelineManager from either running
app or service (insert, update, query, delete)
- Live Card – will talk more next slide

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Live Card Architecture
- Unlike an app, your default launch is a Live Card Service
- Keeps on running
- Need to create pendingintent to launch menu activity to
close the live card
- 2 types of rendering – Low and Hi Frequency

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Live Card Architecture – Low Frequency Rendering
- Small set of views and low update rate
- For example, match score
User says “Ok Glass, <trigger>

Launch live card service

Remote View

Introduction

Framework

Constraints
and
Possibility

Resources

Live Card
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Live Card Architecture – High Frequency Rendering
- Dynamic rendering
- For example, timer
User says “Ok Glass, <trigger>

Launch live card service
Drawing Logic, other
services

Introduction

Framework

Constraints
and
Possibility

Resources

SurfaceView

Live Card
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Other things to take note of
- You can specify touch gestures (like a D-Pad)
- Sensors: Voice Input, GPS, Accelerometer,, Camera
- Glass heats up very fast and have low battery life
- Design your app to be as light weight as possible to reduce
load
- Continuous video recording is about 45-60 minutes

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

See some code?

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What is available by default
- Google Search
- Call/SMS/Hangout
- Get Directions/POI Searches
- Take Picture/Video
- Google Music
- Gmail
- Google Now
….
Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What interesting apps developers are building
- Wolframalpha - “OK Glass, Compute, Population of
Finland”

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What interesting apps developers are building
- DriveSafe – Detects if you are dozing while driving and
give directions to nearest rest area

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What interesting apps developers are building
- WeMoGlass – Control Belkin WeMo devices at home

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What limits developers right now?
- Band-Aid everywhere – check issues often on the
project page, may take time to fix
- E.g. mediascanner only works on reboot, share not working,
no GCM

- Certain features are Mirror API only, notification, action
for static cards
- No emulator

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Resources for developers
- Main Page https://developers.google.com/glass/
- Project Home (https://code.google.com/p/google-glass-api/) for
list of bugs and upcoming enhancements
- Stackoverflow
(http://stackoverflow.com/questions/tagged/google-gdk)
- Unofficial Glassware list (http://glass-apps.org/google-glassapplication-list)

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Getting Glass
- USD$1500 + tax
- Must be over 18 and resident of United States
- Must self collect at Google Office either in NYC or SF
- Choose color
- Go through fitting process
- Setup on your phone

- Need to get invite from Google (Register your interest through
http://www.google.com/glass/)

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

What if I can’t get Glass?
- You can emulate Glass on your Android device with the
instructions from http://www.elekslabs.com/2013/11/googleglass-development-without-glass.html (Or search “Glass
development without Glass”, 3rd result)
- You can emulate the screen resolution on your device (caution:
please get familiar with adb commands before you try)
- Above 4.3: adb shell wm size 640x360
- Below 4.3: adb shell am display-size 640x360

Introduction

Framework

Constraints
and
Possibility

Resources
Developing Glass Apps Using GDK (XE12 Update)
Follow me @chuazy

Questions?

Introduction

Framework

Constraints
and
Possibility

Resources

Contenu connexe

Similaire à Getting Started: Google Glass Apps with GDK

Frontend microservices: architectures and solutions
Frontend microservices: architectures and solutionsFrontend microservices: architectures and solutions
Frontend microservices: architectures and solutionsMikhail Kuznetcov
 
Basics of the Google Glass programming
Basics of the Google Glass programmingBasics of the Google Glass programming
Basics of the Google Glass programmingMiki Yutani
 
CiklumJavaSat15112011:Andrew Mormysh-GWT features overview
CiklumJavaSat15112011:Andrew Mormysh-GWT features overviewCiklumJavaSat15112011:Andrew Mormysh-GWT features overview
CiklumJavaSat15112011:Andrew Mormysh-GWT features overviewCiklum Ukraine
 
ReactJS vs AngularJS - Head to Head comparison
ReactJS vs AngularJS - Head to Head comparisonReactJS vs AngularJS - Head to Head comparison
ReactJS vs AngularJS - Head to Head comparison500Tech
 
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
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 
What's new in android jakarta gdg (2015-08-26)
What's new in android   jakarta gdg (2015-08-26)What's new in android   jakarta gdg (2015-08-26)
What's new in android jakarta gdg (2015-08-26)Google
 
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
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NImam Raza
 
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
 
PHP Development for Google Glass using Phass
PHP Development for Google Glass using PhassPHP Development for Google Glass using Phass
PHP Development for Google Glass using PhassJohn Coggeshall
 
Angular JS 2_0 BCS CTO_in_Res V3
Angular JS 2_0 BCS CTO_in_Res V3Angular JS 2_0 BCS CTO_in_Res V3
Angular JS 2_0 BCS CTO_in_Res V3Bruce Pentreath
 
An Overview of Google Glass GDK
An Overview of Google Glass GDKAn Overview of Google Glass GDK
An Overview of Google Glass GDKDave Slocombe
 
What's new in Android at I/O'16
What's new in Android at I/O'16What's new in Android at I/O'16
What's new in Android at I/O'16Elif Boncuk
 
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlanta
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlantaPlugin for other browsers - webRTC Conference and Expo June 2014 @ atlanta
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlantaAlexandre Gouaillard
 
Frontend Components Outside Main App by Adam Florczak
Frontend Components Outside Main App by Adam FlorczakFrontend Components Outside Main App by Adam Florczak
Frontend Components Outside Main App by Adam Florczak10Clouds
 
Wearable Development Ecosystem
Wearable Development EcosystemWearable Development Ecosystem
Wearable Development EcosystemAmish Gandhi
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 

Similaire à Getting Started: Google Glass Apps with GDK (20)

Frontend microservices: architectures and solutions
Frontend microservices: architectures and solutionsFrontend microservices: architectures and solutions
Frontend microservices: architectures and solutions
 
Basics of the Google Glass programming
Basics of the Google Glass programmingBasics of the Google Glass programming
Basics of the Google Glass programming
 
CiklumJavaSat15112011:Andrew Mormysh-GWT features overview
CiklumJavaSat15112011:Andrew Mormysh-GWT features overviewCiklumJavaSat15112011:Andrew Mormysh-GWT features overview
CiklumJavaSat15112011:Andrew Mormysh-GWT features overview
 
ReactJS vs AngularJS - Head to Head comparison
ReactJS vs AngularJS - Head to Head comparisonReactJS vs AngularJS - Head to Head comparison
ReactJS vs AngularJS - Head to Head comparison
 
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
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
First8 / AMIS Google Glass scanner development
First8 / AMIS Google Glass scanner development First8 / AMIS Google Glass scanner development
First8 / AMIS Google Glass scanner development
 
What's new in android jakarta gdg (2015-08-26)
What's new in android   jakarta gdg (2015-08-26)What's new in android   jakarta gdg (2015-08-26)
What's new in android jakarta gdg (2015-08-26)
 
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
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android N
 
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
 
Web components api + Vuejs
Web components api + VuejsWeb components api + Vuejs
Web components api + Vuejs
 
PHP Development for Google Glass using Phass
PHP Development for Google Glass using PhassPHP Development for Google Glass using Phass
PHP Development for Google Glass using Phass
 
Angular JS 2_0 BCS CTO_in_Res V3
Angular JS 2_0 BCS CTO_in_Res V3Angular JS 2_0 BCS CTO_in_Res V3
Angular JS 2_0 BCS CTO_in_Res V3
 
An Overview of Google Glass GDK
An Overview of Google Glass GDKAn Overview of Google Glass GDK
An Overview of Google Glass GDK
 
What's new in Android at I/O'16
What's new in Android at I/O'16What's new in Android at I/O'16
What's new in Android at I/O'16
 
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlanta
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlantaPlugin for other browsers - webRTC Conference and Expo June 2014 @ atlanta
Plugin for other browsers - webRTC Conference and Expo June 2014 @ atlanta
 
Frontend Components Outside Main App by Adam Florczak
Frontend Components Outside Main App by Adam FlorczakFrontend Components Outside Main App by Adam Florczak
Frontend Components Outside Main App by Adam Florczak
 
Wearable Development Ecosystem
Wearable Development EcosystemWearable Development Ecosystem
Wearable Development Ecosystem
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 

Plus de Zi Yong Chua

Android Wear Presentation
Android Wear PresentationAndroid Wear Presentation
Android Wear PresentationZi Yong Chua
 
Getting Discovered on Google Play
Getting Discovered on Google PlayGetting Discovered on Google Play
Getting Discovered on Google PlayZi Yong Chua
 
Monetizing Android Apps in Asia
Monetizing Android Apps in AsiaMonetizing Android Apps in Asia
Monetizing Android Apps in AsiaZi Yong Chua
 
Tips for Android Publishing in China
Tips for Android Publishing in ChinaTips for Android Publishing in China
Tips for Android Publishing in ChinaZi Yong Chua
 
MoVend Product Intro
MoVend Product IntroMoVend Product Intro
MoVend Product IntroZi Yong Chua
 
AdMob CodeAndroid Presentation
AdMob CodeAndroid PresentationAdMob CodeAndroid Presentation
AdMob CodeAndroid PresentationZi Yong Chua
 
CodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on AndroidCodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on AndroidZi Yong Chua
 
A Noob’S Guide To Android Application Development
A Noob’S Guide To Android Application DevelopmentA Noob’S Guide To Android Application Development
A Noob’S Guide To Android Application DevelopmentZi Yong Chua
 

Plus de Zi Yong Chua (8)

Android Wear Presentation
Android Wear PresentationAndroid Wear Presentation
Android Wear Presentation
 
Getting Discovered on Google Play
Getting Discovered on Google PlayGetting Discovered on Google Play
Getting Discovered on Google Play
 
Monetizing Android Apps in Asia
Monetizing Android Apps in AsiaMonetizing Android Apps in Asia
Monetizing Android Apps in Asia
 
Tips for Android Publishing in China
Tips for Android Publishing in ChinaTips for Android Publishing in China
Tips for Android Publishing in China
 
MoVend Product Intro
MoVend Product IntroMoVend Product Intro
MoVend Product Intro
 
AdMob CodeAndroid Presentation
AdMob CodeAndroid PresentationAdMob CodeAndroid Presentation
AdMob CodeAndroid Presentation
 
CodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on AndroidCodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on Android
 
A Noob’S Guide To Android Application Development
A Noob’S Guide To Android Application DevelopmentA Noob’S Guide To Android Application Development
A Noob’S Guide To Android Application Development
 

Dernier

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

Dernier (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Getting Started: Google Glass Apps with GDK

  • 1. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Photo credit: TheVerge.com
  • 2. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy About myself Chua Zi Yong Developing Android for about 5 years Founder of Stream Media Founder of CodeAndroid Singapore https://www.facebook.com/groups/codeandroid/
  • 3. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What we will cover today on Glass Introduction Framework Constraints and Possibility Resources This session will cover more on high level development consideration – less emphasis on design and technical discussions
  • 4. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Basics of Google Glass What is Glass? Introduction Framework How to use Glass? Constraints and Possibility Resources
  • 5. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Getting Started: https://developers.google.com/glass/ 1) Take note of the design principles (very small screen!) 2) Choose your poison: Mirror API or GDK 3) Check out the samples and demos Introduction Framework Constraints and Possibility Resources
  • 6. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Developing with GDK 1) Run from Glass itself (offline!) unlike Mirror API 2) Based on Android 4.0.2, apps compiled as APK 3) Download using ADT (GDK Sneak Peak) Introduction Framework Constraints and Possibility Resources
  • 7. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy How is GDK related to Android development? You can port your Android code and redesign the interface for Glass, supposedly - At this stage, not everything works, e.g. Play Services, default Share API Introduction Framework Constraints and Possibility Resources
  • 8. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy How is your app triggered? - Command line (that’s how it was done in XE11) - Voice trigger Introduction Framework Constraints and Possibility Resources
  • 9. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Voice trigger - Voice trigger is used to launch your app - You can use any commands during development - Glassware only support standard set of voice commands (https://developers.google.com/glass/develop/gdk/input/voice) - You can submit new commands for approval (which you will hear back in around 2 weeks) Introduction Framework Constraints and Possibility Resources
  • 10. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Contextual voice commands - Sometimes, voice commands is more than “Take a Picture” - Add voice prompt in voicetrigger.xml (“Ok glass, get directions to, home”) <?xml version="1.0" encoding="utf-8"?> <trigger keyword="@string/glass_voice_trigger"> <input prompt="@string/glass_voice_prompt" /> </trigger> Introduction Framework Constraints and Possibility Resources
  • 11. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy 3 types of interfaces Introduction Framework Constraints and Possibility Resources
  • 12. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Static Cards – appear to the right of Timeline Static cards Right now it does nothing except “show you something” - Please help upvote issue 320 https://code.google.com/p/google-glass-api/issues/detail?id=320 Introduction Framework Constraints and Possibility Resources
  • 13. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Live Cards – appear to the left of Timeline - “live” interaction and card can update itself - User can interact with other cards while active Live cards Introduction Framework Constraints and Possibility Resources
  • 14. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Immersions – takes over the whole screen - Like a normal Android app - Outside of Timeline - User cannot interact with cards unless they close your app Introduction Framework Constraints and Possibility Resources
  • 15. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy How to use the Interfaces - Immersion – standard Android app architecture - Static Card – use TimelineManager from either running app or service (insert, update, query, delete) - Live Card – will talk more next slide Introduction Framework Constraints and Possibility Resources
  • 16. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Live Card Architecture - Unlike an app, your default launch is a Live Card Service - Keeps on running - Need to create pendingintent to launch menu activity to close the live card - 2 types of rendering – Low and Hi Frequency Introduction Framework Constraints and Possibility Resources
  • 17. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Live Card Architecture – Low Frequency Rendering - Small set of views and low update rate - For example, match score User says “Ok Glass, <trigger> Launch live card service Remote View Introduction Framework Constraints and Possibility Resources Live Card
  • 18. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Live Card Architecture – High Frequency Rendering - Dynamic rendering - For example, timer User says “Ok Glass, <trigger> Launch live card service Drawing Logic, other services Introduction Framework Constraints and Possibility Resources SurfaceView Live Card
  • 19. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Other things to take note of - You can specify touch gestures (like a D-Pad) - Sensors: Voice Input, GPS, Accelerometer,, Camera - Glass heats up very fast and have low battery life - Design your app to be as light weight as possible to reduce load - Continuous video recording is about 45-60 minutes Introduction Framework Constraints and Possibility Resources
  • 20. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy See some code? Introduction Framework Constraints and Possibility Resources
  • 21. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What is available by default - Google Search - Call/SMS/Hangout - Get Directions/POI Searches - Take Picture/Video - Google Music - Gmail - Google Now …. Introduction Framework Constraints and Possibility Resources
  • 22. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What interesting apps developers are building - Wolframalpha - “OK Glass, Compute, Population of Finland” Introduction Framework Constraints and Possibility Resources
  • 23. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What interesting apps developers are building - DriveSafe – Detects if you are dozing while driving and give directions to nearest rest area Introduction Framework Constraints and Possibility Resources
  • 24. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What interesting apps developers are building - WeMoGlass – Control Belkin WeMo devices at home Introduction Framework Constraints and Possibility Resources
  • 25. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What limits developers right now? - Band-Aid everywhere – check issues often on the project page, may take time to fix - E.g. mediascanner only works on reboot, share not working, no GCM - Certain features are Mirror API only, notification, action for static cards - No emulator Introduction Framework Constraints and Possibility Resources
  • 26. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Resources for developers - Main Page https://developers.google.com/glass/ - Project Home (https://code.google.com/p/google-glass-api/) for list of bugs and upcoming enhancements - Stackoverflow (http://stackoverflow.com/questions/tagged/google-gdk) - Unofficial Glassware list (http://glass-apps.org/google-glassapplication-list) Introduction Framework Constraints and Possibility Resources
  • 27. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Getting Glass - USD$1500 + tax - Must be over 18 and resident of United States - Must self collect at Google Office either in NYC or SF - Choose color - Go through fitting process - Setup on your phone - Need to get invite from Google (Register your interest through http://www.google.com/glass/) Introduction Framework Constraints and Possibility Resources
  • 28. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy What if I can’t get Glass? - You can emulate Glass on your Android device with the instructions from http://www.elekslabs.com/2013/11/googleglass-development-without-glass.html (Or search “Glass development without Glass”, 3rd result) - You can emulate the screen resolution on your device (caution: please get familiar with adb commands before you try) - Above 4.3: adb shell wm size 640x360 - Below 4.3: adb shell am display-size 640x360 Introduction Framework Constraints and Possibility Resources
  • 29. Developing Glass Apps Using GDK (XE12 Update) Follow me @chuazy Questions? Introduction Framework Constraints and Possibility Resources

Notes de l'éditeur

  1. Introduction – what is glass, what is GDKArchitectureFrameworksDevelopment Constraints and PossibilityDevelopment ResourcesHow to get Glass
  2. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  3. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  4. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  5. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  6. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  7. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  8. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  9. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  10. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  11. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  12. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  13. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  14. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  15. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  16. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  17. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  18. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  19. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  20. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  21. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  22. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  23. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  24. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  25. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  26. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.
  27. You probably know what is Google Glass, that is why you are here. Just want to show a really short video just in case you wandered into the room, not knowing what Glass is.