Skip to content

Instantly share code, notes, and snippets.

@pondahai
Created December 18, 2018 08:59
Show Gist options
  • Save pondahai/3acbc5a35bce2ecc35935f6d4e679950 to your computer and use it in GitHub Desktop.
Save pondahai/3acbc5a35bce2ecc35935f6d4e679950 to your computer and use it in GitHub Desktop.
private BluetoothAdapter.LeScanCallback mLeScanCallback =
new BluetoothAdapter.LeScanCallback() {
@Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[] scanRecord) {
runOnUiThread(new Runnable() {
@Override public void run() {
runOnUiThread(new Runnable() {
@Override public void run() {
addDevice(device, rssi);
}
});
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment