Skip to content
Branch: master
Find file History
CarolinaKinetic Removes redundant if statement
Lines 119 and 122 duplicated the statements in lines 118 and 123. This patch removes the redundancy.
Latest commit d7513d1 Oct 21, 2019

Android BluetoothLeGatt Sample

This sample demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT) to transmit arbitrary data between devices.


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 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.


  • Android SDK 28
  • Android Build Tools v28.0.3
  • Android Support Repository


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.


If you've found an error in this sample, please file an issue:

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see for more details.

You can’t perform that action at this time.