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

Packaging your Android wearable application


After you have finished testing your application to ensure that it is free of bugs, you are ready to publish your app to the world. Before this can happen, you must publish your wearable app directly inside a handheld application. This is due to the fact that your users cannot directly install your app to the wearable device.

Fortunately, this process is not that difficult, and in just a few steps you will be able to package your application using Android Studio. Let's get started by following these simple steps:

  1. From the Gradle Scripts section of the Project Navigator window, select the build.gradle (Module: mobile) option as shown in the following screenshot:

  2. Next, under the dependencies section, enter the following code snippet:

    compile 'com.android.support:support-v4:21.0.+'

    Note

    You need to ensure that both your wearable and handheld app modules contain the same package name and version, otherwise you will experience build errors.

  3. From the mobile...