@Override public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) { if (!getServiceUuids(scanRecord).contains(JUMA_SERVICE_UUID)) return; if (name == null || name.equals("") || name.equals(device.getName())) { callback.onDiscover( new JumaDevice( context, ScanHelper.this, device.getName(), UUID.fromString(IDEncrypt(device.getAddress(), context))), rssi); } }