1. Introduction to Android Wear
2. Getting started: Android Studio IDE
3. Create native wearable apps using the Android SDK
4. Principles of great UI Design
5. Build consistent UI layouts using Cards and CardFragments
6. Designing for round and square screens
7. Use the Wearable UI Library to build exciting and engaging apps
8. Master the notification framework: Build notifications for handhelds apps that are automatically extended to Android Wear and learn how to build custom notifications on wearables to better support your brand
9. Use the Wearable Data Layer API to create native apps that can communicate securely with a paired smartphone
10. Working with sensors
11. Add voice capabilities, action countdown and confirmations
12. Location-based services
13. Includes three exciting real-world projects
14. Step-by-step code walkthroughs
“Alex has written a masterful collection of tutorials, patterns, tips & tricks, and helpful insider hints that developers at any level will appreciate. The example apps are easy yet challenging, fun yet practical, and put together using best practices. You’ll really come away with a strong sense of how to build effective experiences for Google wearables.”
Co-author, Designing & Developing for Google Glass
“This is easily one of the most enjoyable technical books on Android Wearable development. It provides an excellent coverage of the entire Android Wear SDK, getting beginners quickly up to speed, and experienced developers ample material to understanding and build effective Android Wear apps. The writing style is clear and concise, and the way the tutorials are presented by walking you basically “Step-by-step” through building a series of apps will leave you with a sense of accomplishment.”
Software Designer, IBM DeveloperWorks
CREATE A CUSTOM WEARABLE LIST VIEW
A wearable list lets users scroll up and down and select through a vertical list of items that are optimized for ease of use on wearable devices. For example, tapping on an off-centered item will snap it on the center of the screen and a single tap selects it. For added convenience on small screens, this class automatically snaps the nearest item in the center of the screen when the user stops scrolling. The wearable list can be used to display a minimal, text-only scrolling list of items or can be extensively customized and adapted to your needs by adding a header, icons, by using colors, and various animated and scaling effects while scrolling through the list as shown in the image above.
Cards are one of the most important UI pattern in Android Wear, simply because they are used so frequently. You can think of a card as being a container used to present information to users with a consistent look and feel across the rest of the platform. If you want to display a title, a description, and an icon, you need a card. If you want to hold a collection of widgets using a custom layout, you need a card. Cards can be as fancy as you want, within the limitations of your wearable device’s screen, of course. However, making them fancy takes some work, requiring the features of Android Wear that are covered in this book.
BUILDING A CAR CATALOG APP
Learn the details about creating user interfaces in Android Wear. Build engaging and dynamic user interfaces that are relevant to what the user wants yet facilitate the quick and lightweight interactions that are essential to wearables. Create delightful and engaging user experiences using the GridViewPager. As the name suggests, the GridViewPager is a layout manager that allows users to scroll vertically and horizontally through pages of data. You can combine different types of pages such as a CardFragment, an ImageView, action icons and custom layouts depending on your use cases. Step-by-step, you will learn how to create a car catalog app to browse through vehicles, take notes on them, and schedule test drives all within arms reach!
ACTIONABLE CUSTOM NOTIFICATIONS
One of the most exciting features of Android Wear is how it seamlessly extends handheld notifications onto your wearable device right out of the box. Notifications are widely used and extremely useful. Interacting with notifications on an Android Watch is as easy and intuitive as using them on your phone because Google has done an outstanding job optimizing them for wearables. And with a little bit of additional development, Android Wear gives you the flexibility to craft rich notification experiences that are more versatile and useful than ever. Step-by-step, you will learn how to create a custom notification with a working circular progress timer as shown in the picture above.
REMOTE-CONTROLLED ANIMATED DICE GAME
Explore the exciting world of touch and gestural interactions. Build an animated dice game using the handheld device as a remote control or the wearable’s accelerometer sensor to detect shake gestures in order to roll a die. You will learn how to animate shapes, establish a data connection between the mobile and Wear devices, and display a history of dice roll outcomes on the handheld device.
Tons of tutorials
Learn Android Wear the quickest and easiest way via step-by-step code walkthroughs. After completing this book, you will have the know-how and the confidence you need to tackle Android Wear projects of your own.
Learn about every aspect of wearable development and use your newfound knowledge to build awesome real-world applications.
Who is this book for?
This book is for intermediate developers who know the basics of Android application development and want to quickly get up to speed and start developing apps for Android Wear. If you are a complete beginner to Android, don’t worry. The step-by-step tutorials are easy to follow and each exercise is followed by an in-depth source code explanation. This book is the best way to get a head start now developing apps for Android Wear.
About the author
I’m Alex Ho, a senior software engineer at NCISoft, R&D technical writer and proud father of two.
For over 10 years, I have been developing firmware for handheld devices in the telecommunication industry. I have always been a fan of wearable technology. As a matter of fact, James Bond and Star Trek were my favourite childhood viewings. I would excitedly stare at the screen, wondering how I can get my hands on these remarkable wearable devices the characters used to conquer the villains. Unfortunately, I quickly realized that the only place I could find those devices was in my dreams (or at the toy store!).
Fast-forward 30 years, wearable technologies are now expanding our capabilities to unforeseen levels. I first started experimenting with the Android Wear Developer Preview in March, 2014. Back then, Google’s development environment, Android Studio, was still in beta testing and the APIs in the SDK were still subject to change. As I continued working with Android Wear, I discovered intriguing features and formidable opportunities for this breakthrough wearable platform.
This site chronicles my journey learning and teaching others how create the best wearable applications possible using Android Wear.
Photograph: Montreal, Quebec.
Alex Ho • Email Me ©2015