public void getBatteryLevel() { BluetoothGattService service = mBluetoothLeService.GetBluetoothGattService(BATTERY_SERVICE); if (service != null) { BluetoothGattCharacteristic batteryLevel = service.getCharacteristic(KEY_BATTERY_LEVEL); mBluetoothLeService.readCharacteristic(batteryLevel); } }