Book Image

Android Wearable Programming

By : Steven F. Daniel
Book Image

Android Wearable Programming

By: Steven F. Daniel

Overview of this book

Table of Contents (14 chapters)
Android Wearable Programming
Credits
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a basic notification for wearables


In this section, we will take a look at how to create a basic notification that will be displayed on our wearable device. So let's get started!

Firstly, create a new project in Android Studio by following these simple steps:

  1. Launch Android Studio, and then navigate to the File | New Project menu option.

  2. Next, enter WearNotifications for the Application name field.

  3. Then, provide the name for the Company Domain field.

  4. Next, choose Project location where you would like to save your application code:

  5. Finally, click on the Next button to proceed to the next step.

Specifying the form factors

Next, we will need to specify the form factors that our application will use, as will be using a single module instead of the app and wear modules as discussed previously in Chapter 1, Understanding Android Wearables and Building Your First Android Wear App.

On the following screen we will need to choose the minimum SDK version for our phone/tablet and perform the following...