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 <sample> 18 <name>BluetoothLeGatt</name> 19 <group>Connectivity</group> 20 <package>com.example.android.bluetoothlegatt</package> 21 22 <!-- change minSdk if needed--> 23 <minSdk>18</minSdk> 24 25 <strings> 26 <intro> 27 <![CDATA[ 28 This sample demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT) 29 to transmit arbitrary data between devices. 30 ]]> 31 </intro> 32 </strings> 33 34 <template src="base"/> 35 36 <metadata> 37 <status>PUBLISHED</status> 38 <categories>Connectivity</categories> 39 <technologies>Android</technologies> 40 <languages>Java</languages> 41 <solutions>Mobile</solutions> 42 <level>ADVANCED</level> 43 <icon>screenshots/icon-web.png</icon> 44 <screenshots> 45 <img>screenshots/1-main.png</img> 46 <img>screenshots/2-detail.png</img> 47 </screenshots> 48 <api_refs> 49 <android>android.app.Service</android> 50 <android>android.bluetooth.BluetoothGattService</android> 51 </api_refs> 52 <description> 53 <![CDATA[ 54 This sample demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT) 55 to transmit arbitrary data between devices. 56 ]]> 57 </description> 58 59 <intro> 60 <![CDATA[ 61 This sample shows a list of available Bluetooth LE devices and provides 62 an interface to connect, display data and display GATT services and 63 characteristics supported by the devices. 64 65 It creates a [Service][1] for managing connection and data communication with a GATT server 66 hosted on a given Bluetooth LE device. 67 68 The Activities communicate with the Service, which in turn interacts with the [Bluetooth LE API][2]. 69 70 [1]:http://developer.android.com/reference/android/app/Service.html 71 [2]:https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html 72 ]]> 73 </intro> 74 </metadata> 75 </sample> 76