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<sample> 19 <name>SpeedTracker</name> 20 <group>Wearable</group> 21 <package>com.example.android.wearable.speedtracker</package> 22 23 <minSdk>18</minSdk> 24 25 <minSdkVersionWear>23</minSdkVersionWear> 26 <multiDexEnabled>true</multiDexEnabled> 27 28 <wearable> 29 <has_handheld_app>true</has_handheld_app> 30 </wearable> 31 32 <androidX>true</androidX> 33 34 <dependency>com.google.android.material:material:1.0.0</dependency> 35 <dependency>androidx.legacy:legacy-support-v13:1.0.0</dependency> 36 <dependency>com.google.android.gms:play-services-maps:16.1.0</dependency> 37 <dependency>com.google.android.gms:play-services-location:16.0.0</dependency> 38 39 <dependency_wearable>androidx.wear:wear:1.0.0</dependency_wearable> 40 <dependency_wearable>androidx.legacy:legacy-support-v13:1.0.0</dependency_wearable> 41 <dependency_wearable>com.google.android.gms:play-services-location:16.0.0</dependency_wearable> 42 43 <strings> 44 <intro> 45 <![CDATA[ 46This sample uses the FusedLocation APIs of Google Play Services 47to gather location and speed. The sample provides a simple screen that shows the 48current speed of the device on the watch. User can set a speed 49limit and if the speed approaches that limit, it changes the 50color to yellow and if it exceeds the limit, it turns red. User 51can also enable recording of coordinates and when it pairs back 52with the phone, this data will be synced with the phone 53component of the app and user can see a track made of those 54coordinates on a map on the phone. 55 ]]> 56 </intro> 57 </strings> 58 59 <template src="base"/> 60 <template src="WearPlusShared"/> 61 62 <metadata> 63 <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> 64 <status>DEPRECATED</status> 65 <!-- See http://go/sample-categories for details on the next 4 fields. --> 66 <!-- Most samples just need to udpate the Categories field. This is a comma- 67 seperated list of topic tags. Unlike the old category system, samples 68 may have multiple categories, so feel free to add extras. Try to avoid 69 simply tagging everything with "UI". :)--> 70 <categories>GPS, Wearable</categories> 71 <technologies>Android</technologies> 72 <languages>Java</languages> 73 <solutions>Mobile</solutions> 74 <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> 75 <!-- Beginner is for "getting started" type content, or essential content. 76 (e.g. "Hello World", activities, intents) 77 78 Intermediate is for content that covers material a beginner doesn't need 79 to know, but that a skilled developer is expected to know. 80 (e.g. services, basic styles and theming, sync adapters) 81 82 Advanced is for highly technical content geared towards experienced developers. 83 (e.g. performance optimizations, custom views, bluetooth) 84 85 Expert is reserved for highly technical or specialized content, and should 86 be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) --> 87 <level>INTERMEDIATE</level> 88 <!-- Dimensions: 512x512, PNG fomrat --> 89 90 <!-- List of APIs that this sample should be cross-referenced under. Use <android> 91 for fully-qualified Framework class names ("android:" namespace). 92 93 Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation 94 for more details. --> 95 <api_refs> 96 <android>com.google.android.gms.maps.MapFragment</android> 97 <android>com.google.android.gms.common.ConnectionResult</android> 98 <android>com.google.android.gms.common.api.GoogleApiClient</android> 99 <android>com.google.android.gms.common.api.ResultCallback</android> 100 <android>com.google.android.gms.common.api.Status</android> 101 <android>com.google.android.gms.location.LocationListener</android> 102 <android>com.google.android.gms.location.LocationRequest</android> 103 <android>com.google.android.gms.location.LocationServices</android> 104 <android>com.google.android.gms.wearable.DataApi</android> 105 <android>com.google.android.gms.wearable.PutDataMapRequest</android> 106 <android>com.google.android.gms.wearable.PutDataRequest</android> 107 <android>com.google.android.gms.wearable.Wearable</android> 108 </api_refs> 109 110 <!-- 1-3 line description of the sample here. 111 112 Avoid simply rearranging the sample's title. What does this sample actually 113 accomplish, and how does it do it? --> 114 <description> 115 <![CDATA[ 116Sample moved to [github.com/android/wear-os][1]. 117 118[1]: https://github.com/android/wear-os 119]]> 120 </description> 121 122 <intro> 123 <![CDATA[ 124This repo and all Wear OS samples have been moved to [github.com/android/wear-os][1]. Please check out the code there. Thank you! 125 126[1]: https://github.com/android/wear-os 127]]> 128 </intro> 129 </metadata> 130 131</sample> 132