thinktank.j2me
Class BluetoothDeviceDiscover
java.lang.Object
thinktank.j2me.BluetoothDeviceDiscover
public class BluetoothDeviceDiscover
- extends java.lang.Object
Wrapper that turns the asynchronous Bluetooth Discovery process into a synchronous one.
Note that many devices will hang indefinitely if you attempt to connect to a bluetooth
device before the discovery process finishes... even if the client attempts to finish
the discovery earlier. This class has been tested on many devices and caters for the
lowest common denominator, at the cost of penalising the devices that do allow a clean
early shutdown of the discovery.
Method Summary |
java.util.Hashtable |
discover()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BluetoothDeviceDiscover
public BluetoothDeviceDiscover()
discover
public java.util.Hashtable discover()
- Returns:
- a map of Strings (of friendly names) to the respective RemoteDevices