Download presentation
Presentation is loading. Please wait.
Published byAnabel Janis Shelton Modified over 6 years ago
1
Google Glass Developing for Glass & Alfresco
2
APIs
3
GDK – Glass Development Kit
Add-on to the Android SDK
4
GDK – Glass Development Kit
Real-time User Interaction Offline Functionality Access To Hardware
5
Mirror RESTful API POST /mirror/v1/timeline HTTP/1.1
Host: Authorization: Bearer {auth token} Content-Type: application/json Content-Length: 26 { "text": "Hello world" }
6
Platform Independence Common Infrastructure Built-in Functionality
Mirror Platform Independence Common Infrastructure Built-in Functionality
7
Must I use just one API
8
GDK and Mirror Hybrid Approach
9
What can I send to Glass
10
Card Attachments – Static
Text Image Video Bundle
11
Live Card
12
Immersion
13
Who wants to see a demo
14
Use Case #1 Publish Image to Glass Document Library Action
Repo Service Google OAuth Client
16
Sample Code – Insert To Timeline
//Get the Mirror API Mirror mirror = getMirrorApi(credential); //Create a new TimelineItem ie Card TimelineItem item = new TimelineItem(); //Get the FileInfo for the Node FileInfo fileInfo = fileFolderService.getFileInfo(nodeRef); //Set the file name as the title of the Card item.setTitle(fileInfo.getName()); //Create insert action (mimetype, inputStream) Insert insert = mirror.timeline().insert(item, new InputStreamContent(fileInfo.getContentData().getMimetype(), fileFolderService.getReader(nodeRef).getContentInputStream())); //execute insert insert.execute(); White: Blank (no brand)
17
Use Case #2 Retrieve Image from Alfresco GDK Glassware
Glass Web browser Alfresco Share Proxy
19
Sample Code – Retrieve from Alfresco
private void handleResult(Result result) { //This is very nasty. Hardcoded user and password. //Proxy will only show images within the browser. //Need a new call to transform documents to images. String url = \ /share/ proxy/alfresco/api/node/content/workspace/ \ SpacesStore/" + result.getText() + "/glass"; //define activity intent to open a url Intent intent = new Intent(Intent.ACTION_VIEW, \ Uri.parse(url)); //load image startActivity(intent); } White: Blank (no brand)
20
Where is the code? All code is POC – offered with no support!
21
Q&A
22
@wabson @rwijangco @tsgrp @ZXing
24
White: Comparison Heading Left Heading Right Level 1 Level 2 Level 3
DO NOT USE
25
White: Title (no brand)
26
Sample Code { // extract avm store id and path
var fullpath = url.extension.split("/"); if (fullpath.length == 0) status.code = 400; status.message = "Store id has not been provided."; status.redirect = true; break script; } var storeid = fullpath[0]; var path = (fullpath.length == 1 ? "/" : "/" + fullpath.slice(1).join("/"));
28
White: Blank (no brand)
29
White: Picture and Caption
30
Image Library
31
Color Palette Lemon Tangerine Sky Blueberry Leaf Chalkboard Soil Clay
Sand
32
Iconography
33
Logo and Tagline
34
Other Graphics
35
A Sample Slide This is a bullet Header without bullet
This is a level 2 bullet This is a level 3 bullet Header without bullet This is level 3, avoid going below this level. 20% Cloud 60% Hybrid 20% On-Prem Example Graphic
36
Fonts & Styling Helvetica Neue Medium Helvetica Neue Medium (Bold)
Helvetica Neue Light Helvetica Neue Light (Bold) Helvetica Neue Thin Helvetica Neue Thin (Bold)
37
Color Palette & Sample Shapes
Lemon Tangerine Sky Blueberry Leaf Chalkboard Soil Clay Sand
38
Government & Intelligence
Alfresco in information intensive industries Our sweet spot – industries that need process, control and collaboration Government & Intelligence Banking & Insurance Manufacturing Media & Publishing High Tech
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.