Posts

Showing posts from January, 2009

Searching For Bluetooth Devices

Bluetooth is a wireless protocol for exchanging data over short distances from fixed and mobile devices, creating personal area networks(PANs).When any two devices need to talk to each other, they have to agree on a number of points before the conversation can begin.The Bluetooth protocol is used to communicate with mobile devices in wireless media.It is a well known and popular technology that is being used by many mobile device manufactures. Mainly the Bluetooth technology is used in mobile phones.Here is some code examples to search for Bluetooth devices near to your device. Start Inquiring for Bluetooth Devices LocalDevice localDeviceData = LocalDevice.getLocalDevice(); DiscoveryAgent bluetoothDiscoveryAgent = localDeviceData.getDiscoveryAgent(); bluetoothDiscoveryAgent.startInquiry(0x9e8b33, this); After finishing the inquiry of Bluetooth devices,the deviceDiscovered(RemoteDevice rd, DeviceClass arg1) method will be invoked. Vector remoteDevices; Li