Reader small image

You're reading from  Android Wear Projects

Product typeBook
Published inJul 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781787123229
Edition1st Edition
Languages
Right arrow
Author (1)
Ashok Kumar S
Ashok Kumar S
author image
Ashok Kumar S

Ashok Kumar S has been working in the mobile development domain from about eight years. He is a Google certified engineer, speaker at global scale conferences and he also runs a youtube channel (AndroidABCD) for Android developers. He is an early Firebase adopter since before Google acquired Firebase. He is Computer Science and Engineering graduate who is completely passionate about innovation in technology. He contributes to open source heavily to improve his e-karma. Ashok has also written a book on Wear OS programming through a project approach.
Read more about Ashok Kumar S

Right arrow

Chapter 2. Let us Help Capture What is on Your Mind - WearRecyclerView and More

There are numerous ways to take notes. You could carry a notebook and pen in your pocket, or scribble thoughts on a piece of paper. Or, better yet, you could use your Android Wear to take notes, so one can always have a way to store thoughts even if there's not a pen and notebook nearby.

The Note-Taking App provides  access to store and retrieve notes within Android Wear devices. There are many Android smartphone note-taking apps, which are popular for their simplicity and elegant functionality. For the scope of a Wear device, it is necessary to keep the design simple and glanceable. Here, in this chapter, let's build a complete, functional, and persistent Note-Taking Wear application. We are calling this application Wear-Note 1:

Getting started


We are going to use all the new components from Wear 2.0 API Support library. We will cover the following topics:

  • WearableRecyclerView
  • WearableRecyclerView adapter
  • SharedPreferences
  • BoxInsetLayout
  • Animated DelayedConfirmation

Let's get started by creating a project

You learned how to create a Wear project in the previous chapter. We will be following a similar process with a slightly different configuration. In this project, we will choose Mobile and Wear app templates and them with further improvements in a later chapter.

Create a project called Wear-note-1:

  1. Your package address should be unique and should follow the reverse domain standard as Android standard development practices recommend it (for instance, com.yourname.projectname). 
  2. Select a convenient project location depending on your accessibility. 
  3. Select the form factors for your application to work on. Here, in this prompt, we will select both the Wear and mobile projects and select the most recent stable API 25 Nougat for...

Summary


In this chapter, we have explored WearablerecyclerView, DelayedConfirmationView, and writing organized code using packages. We have explored the callbacks for all the interface that we implemented in the project. It offered a clear understanding on SharedPreferences using CRUD operations, working with POJO classes, working with the RecyclerView adapter and click events, and  the necessary configuration for the Android Wear project.

 

 

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Android Wear Projects
Published in: Jul 2017Publisher: PacktISBN-13: 9781787123229
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime

Author (1)

author image
Ashok Kumar S

Ashok Kumar S has been working in the mobile development domain from about eight years. He is a Google certified engineer, speaker at global scale conferences and he also runs a youtube channel (AndroidABCD) for Android developers. He is an early Firebase adopter since before Google acquired Firebase. He is Computer Science and Engineering graduate who is completely passionate about innovation in technology. He contributes to open source heavily to improve his e-karma. Ashok has also written a book on Wear OS programming through a project approach.
Read more about Ashok Kumar S