Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Exploring a Google Glass Prototype

No description
by

Sven Haiges

on 2 September 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Exploring a Google Glass Prototype

Sven Haiges
hybris.com/+SvenHaiges
@hansamann
Sven Haiges
hybris.com/+SvenHaiges
@hansamann
techblog.hybris.com
thx.q&a
some love it
some hate it
public places
"ok, glass, take a..."
not mainstream 2014
glass for "controlled use cases"
we're not glassholes
#1 in-store shopping assistance
#2 smart picklist
exploring
a Google Glass
prototype
two
Mirror API
GDK
video
see: https://developers.google.com/glass
your code
platform independence
common infrastructure
built-in functionality
you can start native glass
aps via intents
or both
POST /mirror/v1/timeline
Glass cloud API
timeline cards
menu items
timeline notifications
sharing to contacts
user location
OAuth2
server-side flow
offline access
code
<article class="photo cover-only">
<img src="http://kinectshopping.appspot.com/productimages/f48hazzard09.png" width="100%" height="100%"/>
<div class="photo-overlay"/>
<section>
<p class="text-auto-size"><strong>Ben</strong></p>
</section>
<footer>
<div>in stock</div>
</footer>
</article>
<article>
<section>
<p class="text-auto-size">This is the rather long product description. .</p>
</section>
</article>
groovy
import groovy.json.*

def access_token = 'XXX'

def mMenuItems = [
[action:'READ_ALOUD'],
[action:'VOICE_CALL']
]

def builder = new JsonBuilder()
def root = builder {
html '''HTML OF TIME LINE ITEM(S)'''

speakableText 'This is the spoken version.'
menuItems mMenuItems
creator {
displayName 'Store Name'
phoneNumber '+491781434124'
}

notification {
level 'DEFAULT'
}
}

def con = "https://www.googleapis.com/mirror/v1/timeline".toURL().openConnection()
con.method = 'POST'
con.doOutput = true
con.setRequestProperty('Authorization', "Bearer ${access_token}")
con.setRequestProperty('Content-Type', "application/json")
con.outputStream << builder.toString()

println "${con.responseCode} ${con.responseMessage}"
if (con.responseCode == 200)
{
println con.inputStream.text
}
https://developers.google.com/glass/tools-downloads/playground
real-time user interaction
offline
hardware access
see: https://developers.google.com/glass
.apk
any
adb install
Android SDK 4.0.3
+ GDK Add-On
+ Glass Theme
UI options
static cards
live cards
immersions
gestures
voice
location
sensors
camera
system intents
challenges
getting the device
getting the app
capturing the screen
sharing the screen
code

GestureDetector
PicklistActivity
Full transcript