I am developing an Bluetooth application, and i need to get the name of the services provided by a particular client Bluetooth device. I am using the following code to get the UUID's.
Code Snippet:
if(BluetoothDevice.ACTION_UUID.equals(action))
{
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
Parcelable[] uuidExtra = intent.getParcelableArrayExtra(BluetoothDevice.EXTRA_UUID);
for (int i = 0; i < uuidExtra.length; i++) {
String abc=uuidExtra[i].toString());
}
}
I am getting the uuid value as for example "00001000-0000-1000-8000-00805F9B34FB" But i need its corresponding service name like the following.
BrowseGroupDescriptorServiceClassID = 00001001-0000-1000-8000-00805F9B34FB PublicBrowseGroupServiceClass = 00001002-0000-1000-8000-00805F9B34FB