Chapter    8

Running Apps Directly on Glass

We’ll start this chapter by comparing the two different ways in which we can develop apps for Glass: with the Mirror API and with the Glass Development Kit (GDK). Although the rest of the book only demonstrates how to use the GDK, knowing about the Mirror API helps you understand the benefits and detriments of the GDK. We’ll also discuss two patterns that are common in Glassware: immersions and ongoing tasks. Finally, we’ll see how to implement immersions by developing a scrolling list of cards with a view called WearableListView.

The GDK and the Mirror API

The GDK and the Mirror API are two different development kits for creating Glassware. The GDK is an extension of the Android SDK, which was initially ...

Get Beginning Android Wearables now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.