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.

Buy Now

Select a DRM-free Format:

In Stock
In Stock
In Stock
Buy the eBook and get these DRM-free formats delivered immediately:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
We can automatically send them to your Kindle or Dropbox, and for a social reading experience we can link the book to your Readmill account. (You'll need to log in to enable these options.)
 

About this Book

  • 136 pages
  • Published:
  • 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

  • Acknowledgements
  • Preface
    • 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
    • Wrap-Up
  • The Google App Engine PaaS
    • Setting Up GAE
    • Making a Web App
    • Deploying to the Web
    • Fancy Templates
    • Wrap-Up
  • Authorizing Your Glassware
    • Activating Your Mirror API
    • A Short Primer on OAuth 2.0
    • Applying OAuth to Create Glassware
    • Wrap-Up
  • Building the Timeline excerpt
    • Mirror HTTP Requests
    • Timeline Items
    • Multicards: Bundles and Paginating
    • Menus
    • Cron Jobs
    • Wrap-Up
  • Tracking Movement and User Responses
    • Geolocation
    • Using Location
    • Subscriptions
    • Accepting Notifications
    • Custom Menu Items
    • Wrap-Up
  • Making Glass Social excerpt
    • Creating Contacts
    • Sharing Assets with Glassware
    • Getting and Setting Attachments
    • Wrap-Up
  • Designing for Glass
    • A Little UX
    • Design Layout
    • Look and Feel
    • Wireframes and Mock-Ups
    • Wrap-Up
  • Turning a Web App to Glass
    • ChittrChattr
    • Glassifying the Actions
    • The Mirror Code
    • Wrap-Up
  • HTTP and HTML Resources
    • Timeline
    • Timeline Attachments
    • Locations
    • Subscriptions
    • Contacts
    • Map Parameters
    • HTML

About the Author

Eric Redmond has worked with Fortune 500 companies, governments, and many start-ups. He is a programmer, illustrator, international speaker, Glass Explorer, and organizer of Google Glass Portland.

Comments and Reviews

  • 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.

    —Jason Salas Coauthor of "Think for Glass: Discover, Design, Develop"
  • 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.

    —Jim Wilson Author of "Node.js the Right Way"
  • 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.

    —Steven Mitchell Glass Explorer
  • 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!

    —Marissa Anderson Principal Developer Electrozoic
  • 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.

    —Mark Billinghurt Director HIT Lab NZ, University of Canterbury