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 wearable send and receive application


In this section, we will take a look at how to create an Android wearable application that will send an image and a message, and display this on our wearable device. In the next sections, we will take a look at the steps required to send data to the Android wearable using DataAPI, NodeAPI, and MessageAPIs.

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

  1. Launch Android Studio, and then click on the File | New Project menu option.

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

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

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

  5. Click on the Next button to proceed to the next step.

    Next, we will need to specify the form factors for our phone/tablet and Android Wear devices using which our application will run. On this screen, we will need to choose the minimum SDK version for our phone/tablet and Android Wear.

  6. Click...