# 蓝牙连接Demo **Repository Path**: xieshuhua/testblue ## Basic Information - **Project Name**: 蓝牙连接Demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-31 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > **Warning** > This sample has been deprecated and is no longer being maintained. > > Find the new bluetooth samples in the new [platform-samples repo](https://github.com/android/platform-samples/tree/main/samples/connectivity/bluetooth). Android BluetoothLeGatt Sample =================================== This sample demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT) to transmit arbitrary data between devices. Introduction ------------ This sample shows a list of available Bluetooth LE devices and provides an interface to connect, display data and display GATT services and characteristics supported by the devices. It creates a [Service][1] for managing connection and data communication with a GATT server hosted on a given Bluetooth LE device. The Activities communicate with the Service, which in turn interacts with the [Bluetooth LE API][2]. [1]:http://developer.android.com/reference/android/app/Service.html [2]:https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html Pre-requisites -------------- - Android SDK 28 - Android Build Tools v28.0.3 - Android Support Repository Screenshots ------------- Screenshot Screenshot Getting Started --------------- This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio. Support ------- - Stack Overflow: http://stackoverflow.com/questions/tagged/android If you've found an error in this sample, please file an issue: https://github.com/android/connectivity Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.