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

Adding to-do items


The following image shows sample input for adding a new to-do item to the Today-Todo app:

Mock locations

You may have noticed that we chose to define two locations—home and work. Now, because we have high aspirations, we have ventured to build this app with the most deserving individual in mind, namely the President of the United States. So, that is why the home coordinates correspond to that of the White House, and the work coordinates correspond to that of Capitol Hill (Okay, bad example, we know. The President works in the Oval office in the west wing of the White House complex. But then, imagine how pointless our sample code would be if Work and Home had the same coordinates?). The Constants file with these values is shown in the following figure:

Mocking locations using FakeGPS app

Launch the FakeGPS app and search for the location White House as follows:

After you tap the Set location button, FakeGPS will proceed to simulate the location we set. Take note of the...