[android-developers] Bluetooth
Hello, I am writing an android program that I need to know when a
bluetooth device (I know the Mac) is in range. The program also needs
to be aware when the device is not in range. Is there any way to do
this without establishing a connection?
When the device is in range, I am able to call
BluetoothAdapter.getRemoteDevice and retrieve the friendly name. But
when I am not in range, it seems this information is cached. I was
thinking if I can use the friendly name as an indicator whether the
device is within range (i.e If friendly name is not null, then it's in
range). I am certain there is better way to do this. But it seems the
only way is to establishing a connection.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home