Game Development Reference
In-Depth Information
Figure 11-10. Android Wear Timer Application
Creating an Android Support Wearable Application
So far we've covered how to configure Android Wear, and we also tested a simple
application. The next task is how to develop an application to connect your real Android
smartphone or tablet to the Wear emulator we just created.
To create an Android Wear project, you need the Android Wear Support library
( android.support.wearable ), which you can manually extract from Google Support
Repository and add to your workspace.
Follow these steps to configure the wear Application:
Find the wearable support library file named wearable-1.0.0.aar .
This is normally located in the Android SDK folder you installed, such
as <YourSDK Directory>/extras/google/m2repository/com/google/
android/support/wearable/1.0.0/wearable-1.0.0.aar .
In my case, the file is found in C:\eclipse-SDK\adt-bundle-
windows-x86_64-20140702\sdk\extras\google\m2repository\com\
google\android\support\wearable\1.0.0 .
1.
Copy the wearable-1.0.0.aar to a new location; for instance:
C:\eclipse-SDK\wear .
2.
Rename this file as a zip file, such as wearable-1.0.0.zip .
3.
4.
Extract it in the just-created directory.
Create a new directory named libs and copy classes.jar into that
directory. See Figure 11-11 .
5.
 
Search WWH ::




Custom Search