Closed GoogleCodeExporter closed 8 years ago
This code fragment works as expected:
LocalBluetoothDevice local = LocalBluetoothDevice.initLocalDevice(this);
if (local.isEnabled()) {
if (! local.isScanning()) {
local.scan();
}
}
Be sure, if you enable Bluetooth with
LocalBluetoothDevice.getLocalDevice().setEnabled(true) to wait for the event
that
notifies that Bluetooth service has been activated. Otherwise it won't work.
Original comment by gerda...@gmail.com
on 1 Oct 2009 at 12:18
Original issue reported on code.google.com by
aurora...@gmail.com
on 21 Sep 2009 at 11:45