Book Image

Android Wear Projects

By : Ashok Kumar S
Book Image

Android Wear Projects

By: Ashok Kumar S

Overview of this book

Android Wear Projects is your opportunity to step into the exciting new world of Android Wear app development. This book will help you to master the skills in Android Wear programming and give you a complete insight on wear app development. You will create five different Android Wear apps just like the most popular Android Wear apps. You will create a To-do list, a city maps app, a Wear messenger, Wear fitness tracker and Watch face. While you create these apps you will learn to create custom notifications, receive voice inputs in notifications, add pages to notifications and stack notifications. You will see how to create custom wear app layouts, the custom UIs specially designed for Wear. You will learn to handle and manage data and syncing data with other devices, create interactive Watch faces and also ensure the safety and security of your Wear apps by testing and securing your apps before you deploy them on the app store.
Table of Contents (18 chapters)
Title Page
About the Author
About the Reviewers
Customer Feedback
Let us Help Capture What is on Your Mind - WearRecyclerView and More
Let us Help Capture What is on Your Mind - Saving Data and Customizing the UI
Measuring Your Wellness and Syncing Collected Sensor Data
Let us Chat in a Smart Way - Notifications and More


Let's start working on and replacing the database with RealmDB in this submodule.

RealmDB is creating buzz in the Android programming world; it is a simple alternative to the SQLite database, which comes built into the Android SDK. Realm is not using SQLite as its core engine; it has its own C++ core, exclusively architected for mobiles. Realm saves the data in a universal, table-based format with a C++ core. Realm handles a range of sophisticated queries and can allow data accessibility from multiple languages as well as numerous ad hoc queries.

Advantages of Realm

  • Realm is 10x faster than SQLite
  • Easy to use
  • Cross-platform
  • Memory efficient
  • Well documented and excellent community support

Exploring more about Realm, there are optimizations Realm does, such as integer packing and converting common strings into enums, which results in better performance than the SQLite + ORM database solutions. The traditional SQLite + ORM abstraction is leaky, ORM simply converts objects and their methods...