After discovering a device, use the EXTRA_RSSI
parameter with the ACTION_FOUND
intent, like so:
private BroadcastReceiver mBluetoothDeviceFoundReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Object rssi = intent.getParcelableExtra(BluetoothDevice.EXTRA_RSSI);
...
Not sure about the return data type, so I just used Object
in the example.