Google Glass is the new wearable computer everyone’s talking about. It offers a head-mounted optical display and touch interface, and it’s programmable. Kick-start your Glassware development by exploring how users can interface with Glass, developing a Glass application fast by using the Mirror API to manipulate Timeline cards and menus, tracking a Glass’s geolocation, creating rich interactions by responding to user inputs, and capturing or serving user images and videos. This is the book to read for a shortcut to this brave new world.
About this Book
- 136 pages
- Release: P1.0 (2013-12-10)
- ISBN: 978-1-93778-579-6
Google Glass is the next big thing in portable technology—-a wearable computer with an optical head-mounted display. Programming Google Glass is your all-inclusive guidebook for crafting your own Glassware using the Mirror API.
You’ll start by setting up a production-ready service using Google App Engine, then provide Glass users an authorization to your Glassware. You’ll learn how to handle the provided credentials, and from there you’ll dive into the parts that make up the Glass interface, managing the timeline and creating cards and menu items. Next you’ll create services where the user can interact with your server, such as geolocation tracking, change notifications, and custom menu options. You’ll use this information to create a sophisticated application that suggests local restaurants. You’ll see how to attach or detach assets, images, and video, and learn the basics of the emerging field of optical-display design. You’ll see how to properly design new Glassware and update existing applications to become Glassware.
Now is the best time to be an early adopter of a technology that will only become more advanced, nuanced, and ubiquitous.
What You Need
You will need a Google Glass device and Java 1.6 or greater. An Android device, like a smart phone or tablet, is also helpful, but not necessary.
Contents and Extracts
- What’s the Big Deal with Glass?
- Is This Book for You?
- What’s in This Book?
- Online Resources
- Getting Going
- Wrapping Your Head Around Glass
- Getting to Know Glass
- Learning to Navigate
- Glass Hardware
- Glass Software
- The Google App Engine PaaS
- Setting Up GAE
- Making a Web App
- Deploying to the Web
- Fancy Templates
- Authorizing Your Glassware
- Activating Your Mirror API
- A Short Primer on OAuth 2.0
- Applying OAuth to Create Glassware
- Building the Timeline excerpt
- Mirror HTTP Requests
- Timeline Items
- Multicards: Bundles and Paginating
- Cron Jobs
- Tracking Movement and User Responses
- Using Location
- Accepting Notifications
- Custom Menu Items
- Making Glass Social excerpt
- Creating Contacts
- Sharing Assets with Glassware
- Getting and Setting Attachments
- Designing for Glass
- A Little UX
- Design Layout
- Look and Feel
- Wireframes and Mock-Ups
- Turning a Web App to Glass
- Glassifying the Actions
- The Mirror Code
- HTTP and HTML Resources
- Timeline Attachments
- Map Parameters
Comments and Reviews
—Jason Salas Coauthor of "Think for Glass: Discover, Design, Develop"
Eric’s writing captures the spirit of Glassware development with honesty, wit, and charm—peppered with a healthy dose of insider tricks and techniques for quickly building effective wearable computing services that coders of all levels will appreciate.
—Jim Wilson Author of "Node.js the Right Way"
This insightful book opened my eyes to the potential of Google Glass in a big way. Glassware is going to be huge, and this book gives you the tools to make it.
—Steven Mitchell Glass Explorer
A great read and learning resource. You start with a small project and build it into a full-fledged Glassware application, learning all about the Mirror API along the way.
—Marissa Anderson Principal Developer Electrozoic
I really enjoyed your book; you successfully convinced me to buy Glass and start learning as much about it as I can. It’s not like the tech is going to disappear if I ignore it!
—Mark Billinghurt Director HIT Lab NZ, University of Canterbury
This is a great introduction to the Google Glass Mirror API. Any serious Google Glass developer will want to get a copy of this book.