I am developing a blackberry mobile app and I am using the javax.bluetooth api for using bluetooth in my application. I was wondering whether its possible to get the information about the remote device. I am able to fetch the name and address of the remote bluetooth deices but I also want to know the type of the device. I want to know whether the remote device is a Phone or PC. Is it possible to determine this in Blackberry OS 5?
I am using the following code to get the name and the address of the remote device.
System.out.println((i + 1) + ". "
+ remoteDevice.getBluetoothAddress() + " ("
+ remoteDevice.getFriendlyName(true) + ")");
Thanks in advance
I figured out how to get the type of the device. The device type can be found by using the
Device Class. IndeviceDiscovered()method of theDiscovery Agentwe get theRemote Devicealong with theDevice class. We can use thegetMajorDeviceClass()method of the Device Class to get the type of Device.The type of Major Device Class is given in this link.