Game Development Reference
In-Depth Information
The application is now ready to be connect to your Android smartphone or tablet. Run this
project to see the result in the Wear emulator you created earlier. See Figure
11-18
.
Figure 11-18.
Project result in the AVD Wear emulator
Note
The cloud icon beside the battery icon means that your Android Wear is not paired/
connected to any real Android devices.
Understanding the Code
Let's look closely now at what you need to add to your wearable application and how it
should be configured.
Listing 11-1 shows the source code for the
AndroidManifest.xml
file for
ch11.project
.
Listing 11-1. AndroidManifest.xml file
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<manifest xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
" ch11.project"
android:versionCode=
"1"
android:versionName=
"1.0"
>