I need to programatically find Android Bluetooth version on the phone. Can someone me tips how to do that?
As far as i know (and i did a lot of research) there is no way to find out what the hardware version is of your Android bluetooth device. (4.0, 4.2, 5.0,...)
Some people claim they have an app that can do this, but i never saw a working example. These apps show you a lot of version numbers but not the Bluetooth hardware version.
Some people come up with a trick that shows you the version number of the bluetooth software, but that is not what we want to know.
There are some tricks to get the capabilities of the bluetooth device, but again, that is not what we want to know.
IMHO, with android you can distinguish only presence of Bluetooth or Bluetooth_LE. But I am doubtful about android support on identifying Bluetooth versions (e.g. BT2.0, BT2.1+EDR, BT3.0 etc). The way to programatically identify the BT or BLE presence only could be:
PackageManager pm = getActivity().getPackageManager();
boolean isBT = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH);
boolean isBLE = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE);
Thereafter, using isBT or isBLE flags, the app flow can be directed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With