1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright 2017 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 <sample> 18 <name>WearComplicationProvidersTestSuite</name> 19 <group>Wearable</group> 20 <package>com.example.android.wearable.wear.wearcomplicationproviderstestsuite</package> 21 22 <minSdk>25</minSdk> 23 24 <targetSdkVersion>25</targetSdkVersion> 25 <targetSdkVersionWear>25</targetSdkVersionWear> 26 27 <wearable> 28 <has_handheld_app>false</has_handheld_app> 29 </wearable> 30 31 <dependency_wearable>com.android.support:appcompat-v7:25.1.1</dependency_wearable> 32 33 <strings> 34 <intro> 35 <![CDATA[ 36 Complication Test Suite is a set of complication providers that provide dummy data and it can be 37 used to test how different types of complications render on a watch face. 38 ]]> 39 </intro> 40 </strings> 41 42 <template src="base-build" /> 43 <template src="Wear" /> 44 45 <metadata> 46 <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> 47 <status>PUBLISHED</status> 48 <!-- See http://go/sample-categories for details on the next 4 fields. --> 49 <!-- Most samples just need to udpate the Categories field. This is a comma- 50 seperated list of topic tags. Unlike the old category system, samples 51 may have multiple categories, so feel free to add extras. Try to avoid 52 simply tagging everything with "UI". :)--> 53 <categories>Wearable</categories> 54 <technologies>Android</technologies> 55 <languages>Java</languages> 56 <solutions>Mobile</solutions> 57 <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> 58 <!-- Beginner is for "getting started" type content, or essential content. 59 (e.g. "Hello World", activities, intents) 60 61 Intermediate is for content that covers material a beginner doesn't need 62 to know, but that a skilled developer is expected to know. 63 (e.g. services, basic styles and theming, sync adapters) 64 65 Advanced is for highly technical content geared towards experienced developers. 66 (e.g. performance optimizations, custom views, bluetooth) 67 68 Expert is reserved for highly technical or specialized content, and should 69 be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) --> 70 <level>INTERMEDIATE</level> 71 <!-- Dimensions: 512x512, PNG fomrat --> 72 <icon>screenshots/icon-web.png</icon> 73 <!-- Path to screenshots. Use <img> tags for each. --> 74 <screenshots> 75 <img>screenshots/wear-1.png</img> 76 <img>screenshots/wear-2.png</img> 77 </screenshots> 78 <!-- List of APIs that this sample should be cross-referenced under. Use <android> 79 for fully-qualified Framework class names ("android:" namespace). 80 81 Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation 82 for more details. --> 83 <api_refs> 84 <android>android.support.wearable.complications.ComplicationData</android> 85 <android>android.support.wearable.complications.ComplicationManager</android> 86 <android>android.support.wearable.complications.ComplicationProviderService</android> 87 <android>android.support.wearable.complications.ComplicationText</android> 88 <android>android.support.wearable.complications.ProviderUpdateRequester</android> 89 </api_refs> 90 91 <!-- 1-3 line description of the sample here. 92 93 Avoid simply rearranging the sample's title. What does this sample actually 94 accomplish, and how does it do it? --> 95 <description> 96 <![CDATA[ 97 Complication Test Suite is a set of complication providers that provide dummy data and it can be 98 used to test how different types of complications render on a watch face. 99 ]]> 100 </description> 101 102 103 <intro> 104 <![CDATA[ 105 Steps for trying out the sample: 106 * Compile and install the wearable app onto your Wear device or emulator (for Wear scenario). 107 108 * This sample does not have a main Activity (just Services that provide the complication data). 109 Therefore, you may see an error next to the 'Run' button. To fix, click on the 110 "Wearable" dropdown next to the 'Run' button and select 'Edit Configurations'. Under the 111 'Launch Options', change the 'Launch' field from 'Default APK' to 'Nothing' and save. 112 113 This sample provides dummy data for testing the complications UI in your watch face. After 114 selecting a type from your watch face configuration Activity, you can tap on the complications to 115 see more options. 116 117 The Wear app demonstrates the use of [ComplicationData][1], [ComplicationManager][2], 118 [ComplicationProviderService][3], [ComplicationText][4], and [ProviderUpdateRequester][5]. 119 120 [1]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html 121 [2]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationManager.html 122 [3]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html 123 [4]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html 124 [5]: https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html 125 ]]> 126 </intro> 127 </metadata> 128 </sample> 129