O'Reilly logo

Programming Google Glass by Eric Redmond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Timeline Items

If a timeline is a sequence of chronological events, a timeline item is an individual event. Every timeline item has a timestamp and some sort of payload, be it text or HTML, an attachment like an image or video, or a more abstract asset like a contact with a phone number to call.

You can create, read, update, and delete timeline items. We’ll dig a little deeper into creating some richer Lunch Roulette items.

Create a Timeline Item

The first action any Glassware app is likely to take is to create a new timeline item.

The Java code for creating a new card in the timeline is the timeline object’s insert method. You have to call the execute methods to send the new timeline change to the Mirror API; otherwise, you’ve just populated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required