Book Image

Mastering Android Wear Application Development

By : Siddique Hameed, Javeed Chida
Book Image

Mastering Android Wear Application Development

By: Siddique Hameed, Javeed Chida

Overview of this book

Wearable technology is the future of mobile devices. It looks set to be a breakthrough technology, just like the iPad was before it. With the Apple Watch being widely regarded as a success, all eyes are now on Google to provide a similar device for its users. Keep your skills ahead of the competition and be one of the first to fully understand this powerful new trend. This book will give you a very solid understanding of the philosophy, thought process, development details, and methodologies involved in building well-designed, robust Android Wear applications. We cover the advantages and disadvantages of the wearable computing paradigm and provide a good foundational knowledge for you to build practical, real-world wearable apps. You will learn about the various tools, platforms, libraries, SDKs, and technology needed to build Android Wear apps. By the end of the book, you will be an expert in building Android wearable apps.
Table of Contents (18 chapters)
Mastering Android Wear Application Development
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

The Android manifest file


Every Android application consists of an Android manifest file named AndroidManifest.xml. It contains all the essential information needed for the Android operating system to launch the application. The manifest file is used for declaring the activities, services, intents, SDK versions, features, permissions, and other application-specific components and behavioral elements for the Android application.

We should pay close attention to line number 23 of the Android manifest file that was included in the Skeleton wearable app:

<uses-feature android:name="android.hardware.type.watch" />

This line basically explains to the Android operating system that it is an Android Wear app. To prove this out, let's try commenting out this line from the AndroidManifest.xml file and launch the application. You should see the following error message when you launch the application using an emulator: