Book Image

Mastering Android Wear Application Development

By : Siddique Hameed, Javeed Chida
Book Image

Mastering Android Wear Application Development

By: Siddique Hameed, Javeed Chida

Overview of this book

Wearable technology is the future of mobile devices. It looks set to be a breakthrough technology, just like the iPad was before it. With the Apple Watch being widely regarded as a success, all eyes are now on Google to provide a similar device for its users. Keep your skills ahead of the competition and be one of the first to fully understand this powerful new trend. This book will give you a very solid understanding of the philosophy, thought process, development details, and methodologies involved in building well-designed, robust Android Wear applications. We cover the advantages and disadvantages of the wearable computing paradigm and provide a good foundational knowledge for you to build practical, real-world wearable apps. You will learn about the various tools, platforms, libraries, SDKs, and technology needed to build Android Wear apps. By the end of the book, you will be an expert in building Android wearable apps.
Table of Contents (18 chapters)
Mastering Android Wear Application Development
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

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 define a geofence, a circular region around the coordinates of interest. Entrance and exit events signal when the device enters or exits the geofence location. An optional duration attribute delays the triggering of an event for that time interval...