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: