O'Reilly logo

Mastering Android Wear Application Development by Javeed Chida, Siddique Hameed

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

Today app with to-do notifications

We are going to augment our Today app with a to-do activity that lets the user add to-do items and associate them with specific locations, such as home, or work. The locations then provide the context, which drives the notifications. This, in effect, makes our notifications context-aware.

For example, if the system detects that the user is in close proximity to the Home location, then to-do items associated with the Home category are presented to the user via the notifications API.

Geofencing

We'll be using the Geofencing API to figure out the location, that is, the context. In essence, this API lets us draw a circle of some agreed-upon radius around a coordinate. In effect, the latitude, longitude, and radius together ...

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