Here is the problem. The user has run my app previously and discovered and paired with a Bluetooth Low Energy health device. That's all the app works with is health devices. I keep track of that device so the app is able to reconnect automatically to that device as long as the app is running.
If the user exits the app or power cycles the Android and restarts the app, I would like to set up automatic reconnection to those paired devices. In classic using HDP, this is done automatically by Android. Not so in BTLE! So what I have to do is go through the list of paired devices and add them to my list of known devices.
But here is the problem. There is no way in BTLE to know what the device is. When I examine BluetoothDevice.getBluetoothClass().getDeviceClass() or .getMajorDeviceClass() they all give the same result: 0x1F00 which means 'UNCATEGORIZED'. So if someone has paired with a BTLE headphone, I will include that in my list.
Is there a way to get the BTLE device class or category without having to save a bunch of stuff to a file myself? Saving BT addresses won't work since BTLE devices can use random addressing (though most don't).