1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2013 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18 19 20<sample> 21 <name>Speed Tracker</name> 22 <group>Wearable</group> 23 <package>com.example.android.wearable.speedtracker</package> 24 25 <minSdk>18</minSdk> 26 <targetSdkVersion>23</targetSdkVersion> 27 <targetSdkVersionWear>23</targetSdkVersionWear> 28 29 <wearable> 30 <has_handheld_app>true</has_handheld_app> 31 </wearable> 32 33 <dependency>com.android.support:design:24.0.0</dependency> 34 35 <dependency>com.google.android.gms:play-services-location</dependency> 36 <dependency_wearable>com.google.android.gms:play-services-location</dependency_wearable> 37 38 <strings> 39 <intro> 40 <![CDATA[ 41This sample uses the FusedLocation APIs of Google Play Services 42on those devices that have a hardware GPS built in. In those 43cases, this sample provides a simple screen that shows the 44current speed of the device on the watch. User can set a speed 45limit and if the speed approaches that limit, it changes the 46color to yellow and if it exceeds the limit, it turns red. User 47can also enable recording of coordinates and when it pairs back 48with the phone, this data will be synced with the phone 49component of the app and user can see a track made of those 50coordinates on a map on the phone. 51 ]]> 52 </intro> 53 </strings> 54 55 <template src="base"/> 56 <template src="WearPlusShared"/> 57 58</sample> 59