ebook img

Programming Google Glass: The Mirror API PDF

171 Pages·2016·1.86 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Programming Google Glass: The Mirror API

Programming Google Glass The Mirror API by Eric Redmond Version: P1.0 (December 2013) Copyright © 2013 The Pragmatic Programmers, LLC. This book is licensed to the individual who purchased it. We don't copy-protect it because that would limit your ability to use it for your own purposes. Please don't break this trust— you can use this across all of your devices but please do not share this copy with other members of your team, with friends, or via file sharing services. Thanks. —Dave & Andy. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC. Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein. Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com. Table of Contents Acknowledgements Preface What’s the Big Deal with Glass? Is This Book for You? What’s in This Book? Online Resources Getting Going 1.Wrapping Your Head Around Glass Getting to Know Glass Learning to Navigate Glass Hardware Glass Software Wrap-Up 2.The Google App Engine PaaS Setting Up GAE Making a Web App Deploying to the Web Fancy Templates Wrap-Up 3.Authorizing Your Glassware Activating Your Mirror API A Short Primer on OAuth 2.0 Applying OAuth to Create Glassware Wrap-Up 4.Building the Timeline Mirror HTTP Requests Timeline Items Multicards: Bundles and Paginating Menus Cron Jobs Wrap-Up 5.Tracking Movement and User Responses Geolocation Using Location Subscriptions Accepting Notifications Custom Menu Items Wrap-Up 6.Making Glass Social Creating Contacts Sharing Assets with Glassware Getting and Setting Attachments Wrap-Up 7.Designing for Glass A Little UX Design Layout Look and Feel Wireframes and Mock-Ups Wrap-Up 8.Turning a Web App to Glass ChittrChattr Glassifying the Actions The Mirror Code Wrap-Up A1.HTTP and HTML Resources Timeline Timeline Attachments Locations Subscriptions Contacts Map Parameters HTML Copyright © 2013, The Pragmatic Bookshelf. Early praise for Programming Google Glass 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, 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, 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 Acknowledgements All books, even short ones like this, require efforts that extend far beyond a single author. Although I get to put my name on the cover, I want to thank everyone who helped turn a collection of drafts and ideas into a book we all hope you’ll enjoy. Thanks first go to my indefatigable editor, Jackie Carter. Thanks, too, to Susannah, Andy, Dave, and the rest of the crew at Pragmatic for keeping this ship sailing straight. I’m thrilled to thank my eagle-eyed friend Jim Wilson, and the piles of notes from a cadre of talented Glass Explorers: Jason Salas, Steven Mitchell, Marissa Anderson, Mark Billinghurst, Elmer Thomas, and Rahul Ravikumar. Finally, thanks to my patient wife Noelle for enduring another book, and a preemptive thanks to Miss Wiggles for tolerating the next one. Copyright © 2013, The Pragmatic Bookshelf. Preface Google Glass is the new wearable computer that everyone is talking about. Not only does Glass offer a head-mounted optical display and touch interface, but it’s also programmable in two ways: by creating native applications using the Glass Development Kit (GDK), and by programming Glassware (Glass applications) using the HTTP-based Mirror API. This book is about the latter. You’ll get a glimpse of what Glass is and what it is not, and how users can interface with Glass. Then you’ll learn how to develop a Glass application fast, by using the Mirror API to manipulate timeline cards and menus, track a Glass’s geolocation, create rich interactions by responding to user inputs, and capture or serve user images and videos. You’ll see how to properly design new Glassware or update existing applications to become Glassware. This is the book to read if you want a shortcut to this brave new world.

Description:
The Pragmatic Bookshelf, 2013. — 136 p. — ISBN: 1937785793.На англ. языке.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
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.