Android examples for Bluetooth:Bluetooth State
Get Bluetooth gatt To String
//package com.java2s; import android.bluetooth.BluetoothGatt; public class Main { public static String gattToString(BluetoothGatt gatt) { if (gatt == null) { return "null"; }/*ww w.j av a 2s .c om*/ return "gatt:" + gatt.getDevice().getName(); } }