1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2015 Google Inc. All rights reserved. 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>WearSpeakerSample</name> 19 <group>Wearable</group> 20 <package>com.example.android.wearable.speaker</package> 21 22 <strings> 23 <intro> 24<![CDATA[ 25A sample that shows how you can record voice using the microphone on a wearable and 26play the recorded voice or an mp3 file, if the wearable device has a built-in speaker. 27 28This sample doesn't have any companion phone app so you need to install this directly 29on your watch (using "adb"). 30]]> 31 </intro> 32 </strings> 33 34 <template src="unmanaged" /> 35 36 <metadata> 37 <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> 38 <status>DEPRECATED</status> 39 <!-- See http://go/sample-categories for details on the next 4 fields. --> 40 <categories>Wearable</categories> 41 <technologies>Android</technologies> 42 <languages>Java</languages> 43 <solutions>Mobile</solutions> 44 <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> 45 <level>INTERMEDIATE</level> 46 <!-- Dimensions: 512x512, PNG fomrat --> 47 <icon>screenshots/1.png</icon> 48 <!-- Path to screenshots. Use <img> tags for each. --> 49 <!-- <screenshots> 50 <img>screenshots/composite-1.png</img> 51 </screenshots> --> 52 <!-- List of APIs that this sample should be cross-referenced under. Use <android> 53 for fully-qualified Framework class names ("android:" namespace). 54 55 Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation 56 for more details. --> 57 <api_refs> 58 <android>android.media.AudioTrack</android> 59 <android>android.media.AudioRecord</android> 60 </api_refs> 61 <description> 62 <![CDATA[ 63Sample moved to [github.com/android/wear-os][1]. 64 65[1]: https://github.com/android/wear-os 66]]> 67 </description> 68 69 <intro> 70 <![CDATA[ 71This repo and all Wear OS samples have been moved to [github.com/android/wear-os][1]. Please check out the code there. Thank you! 72 73[1]: https://github.com/android/wear-os 74]]> 75 </intro> 76 </metadata> 77</sample> 78