javax.bluetooth not finding local device?
807601Jun 19 2008 — edited Jun 21 2008Hi,
I am trying to build a small app to transfer some data over bluetooth from my phone to my pc.
In true noobie style, I've fallen at the first hurdle, and google searches aren't turning up any related results.
I'm literally just trying to get the local device:
m_LclDevice = LocalDevice.getLocalDevice();
and it is throwing a BluetoothStateException, but the message is null (nice and helpful)
if I try calling LocaDevice.isPowerOn(); it returns false.
I've also tried using the demo code here: http://developer.sonyericsson.com/docs/DOC-1756 and I get exactly the same error.
I'm assuming that this means it can't find my local Bluetooth device, which is happily plugged into my computer. I've tried two usb dongles, I've tried with just the MS stack/drivers installed, and added the WidComm and IVT BlueSoliel ones that came with each of the dongles to see if that helped, but to no avail.
I guess I must be missing a step somewhere? What does the java stack need to access the local devices?
Is this a package that I'm missing?
I guess the real question is, what am I doing wrong?!
Thanks in advance for any help.
Eris
Edited by: Eris on Jun 19, 2008 7:18 AM
P.S. I have no problems connecting to & accessing the phone using either dongle and the software included with each stack/driver.
Edited by: Eris on Jun 19, 2008 7:24 AM