Beginning Google Glass Development

Book description

"

Beginning Google Glass Development is your number one resource for learning how to develop for Google Glass--the paradigm-shifting mobile computing platform taking the world by storm now and for years to come. Mobile developers have always had to think for the future, and right now that means getting started with Google Glass.

This book is incredibly hands-on with many exciting projects. You will learn the basics of Glass and how to set up your development environment, through to every Glass development topic using Glass Development Kit (GDK):

- Glass User Interface

- Camera and Image Processing

- Video: Basics and Applications

- Voice and Audio

- Network, Bluetooth, and Social

- Locations, Map, and Sensors

- Graphics, Animation, and Games

You will also learn how to develop enterprise and web-based Glass apps using the Mirror API. Each topic is full of examples that illustrate what Glass can truly do and help you quickly start developing your own apps.

Jeff Tang has successfully developed mobile, web, and enterprise apps on many platforms, and cares immensely about user experience. He brings his vast knowledge to this book through cool and practical examples, which will excite and tantalize your creativity.

This book is for any developer who is keen to start developing for Glass with GDK or the Mirror API. Whether you are an Android, iOS, web, or enterprise developer, you do not want to miss the chance that Glass becomes the next big thing. Get started with Beginning Google Glass Development and be inspired today.

"

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Technical Reviewer
  9. Acknowledgments
  10. Introduction
  11. Chapter 1: Getting Started
    1. Why Glass
    2. What Is Glass and Glassware?
      1. What Can Glass Do?
      2. What Kinds of Glassware Can You Develop?
      3. When to Use Which
      4. Google’s Glassware Policies
    3. Why This Book?
    4. Who Is This Book For?
      1. For Beginning Android Developers
      2. For Intermediate or Advanced Android Developers
      3. For iOS Developers
      4. For Web Developers
      5. For Other Programmers
      6. For Nonprogrammers
    5. Resources
    6. Questions and Feedback
    7. Summary
  12. Chapter 2: Hello, Glass! Your First GDK App
    1. Setting Up the Development Environment
      1. System Requirements
      2. Android Developer Tools
    2. Playing with Glass
      1. Enabling Debugging Mode on Glass
      2. The adb Command
      3. Installing the USB Driver on Windows
      4. Showing the Glass Screen on a Bigger Screen
      5. Developing with Simulated Devices or Emulators
      6. Testing with GDK Samples
    3. The HelloGlass Glassware
      1. Step-by-Step Tutorial
      2. What’s Going On
    4. Summary
  13. Chapter 3: Glass User Interface
    1. Overview
    2. Glass-Styled Cards
      1. Menu
    3. Live Cards
      1. Low-Frequency Live Cards
      2. High-Frequency Live Cards
      3. Menu
    4. Immersion
      1. 2D Canvas Drawing
      2. Gestures and Listeners
      3. Menu and Head Gesture
      4. 3D OpenGL ES Drawing
    5. When to Use Which
    6. Theme and UI Widgets
    7. Summary
  14. Chapter 4: Camera and Image Processing
    1. Taking Pictures
      1. The Easy Way
      2. The Custom Method
    2. Photo View
    3. Barcode Recognition
    4. OCR
    5. Image Web Search
    6. OpenCV
    7. The Complete App
    8. Summary
  15. Chapter 5: Video: Basics and Applications
    1. Capturing Video
      1. The Quick Way
      2. The Custom Way
    2. Playing Video
    3. OpenCV Video Processing
    4. FFmpeg Video Processing
      1. Test the Library Client on Glass
      2. Integrating the FFmpeg Library
    5. YouTube Integration
      1. Calling Data API
      2. Displaying Query Result
      3. Making the Voice Query
      4. Playing the Video and Let’s Karaoke
      5. Keeping Code Updated
      6. Running the App
    6. Summary
  16. Chapter 6: Voice and Audio
    1. Voice Input
      1. Sound Effects
    2. Audio Capture and Play
      1. Using MediaRecorder and MediaPlayer
      2. Using AudioRecord and AudioTrack
      3. Improving the Karaoke App
    3. Pitch Detection
    4. Touchtone Detection
    5. Song Identification
    6. Summary
  17. Chapter 7: Networking, Bluetooth, and Social
    1. Making HTTP Requests
      1. HTTP GET
      2. HTTP POST
      3. HTTP File Uploading
    2. Socket Programming
      1. Glass Client vs. Android Server
      2. Glass Server vs. Android Client
      3. Glass Client vs. iOS Server
      4. Glass Server vs. iOS Client
    3. Bluetooth
      1. Classic Bluetooth
      2. Bluetooth Low Energy
      3. Other Tips
    4. Going Social
    5. Summary
  18. Chapter 8: Location, Map, and Sensors
    1. Location
      1. Getting Location
      2. Showing Address
      3. Showing and Resizing Map
      4. Finding Places Nearby
      5. Searching Shared Pictures
    2. Sensors
      1. Supported Sensors
      2. Collecting Sensor Data
      3. Shake It or Not
      4. Detecting Metal
      5. Developing a Compass
      6. Finding the Planets
    3. Summary
  19. Chapter 9: Graphics, Animation, and Games
    1. Graphics
      1. Canvas Drawing
      2. Drawable Shapes
      3. Finger Painting
      4. Bitmap Manipulation
      5. OpenGL ES Drawing
    2. Animation
      1. Animating Properties in XML and Programmatically
      2. Grouping Animation in XML and Programmatically
      3. Using Animation Listener
    3. Game Engines on Glass
      1. Cocos2d-x 3.0
      2. libgdx
      3. AndEngine
    4. Developing a Sensor-Based Game
    5. Summary
  20. Chapter 10: The Mirror API
    1. Setting Up Your Environment
      1. Using PHP
      2. Using Java
    2. The Mirror API
      1. Overview
      2. Timeline and Static Cards
      3. Contacts
      4. Subscriptions
      5. Locations
    3. Image Processing: The Mirror API Way
    4. Creating and Testing a New Mirror App in Java
    5. The NBA Roster App
    6. Enterprise Apps
    7. Design Principles
    8. Summary
    9. Before Moving On
  21. Index

Product information

  • Title: Beginning Google Glass Development
  • Author(s): Jeff Tang
  • Release date: June 2014
  • Publisher(s): Apress
  • ISBN: 9781430267881