views:

432

answers:

1

Hi,

In one of my application I need to display all the Wifi and bluetooth devices which are paired to my mobile and it's Signal Strengths .Wifi side it is ok for me to display signal strength(RSSI).But i got a problem at Bluetooth side.I searched for the method which is suitable for this task,i found one method that is

intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);

It is displaying only the new device RSSI which is not paired to my mobile.Is there any idea for getting all bluetooth devices RSSI.Plz give me idea or source code ?

A: 

For bluetooth RSSI, you can read RSSI for connected devices, or perform a bluetooth discovery to check the RSSI for nearby devices.

Basically a bluetooth discovery is a broadcast to all stations within range to respond back. As each devices respons back, Android fires off an ACTION_FOUND intent. Within this intent you can getExtra EXTRA_RSSI to obtain the RSSI.

Note that not all bluetooth hardware supports RSSI.

Also Related: http://stackoverflow.com/questions/2149776/android-irc-office-hours-question-about-android-bluetooth-rssi

Brad Hein