Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Android Bluetooth version?

I need to programatically find Android Bluetooth version on the phone. Can someone me tips how to do that?

like image 872
user1187176 Avatar asked Feb 03 '12 09:02

user1187176


2 Answers

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.

like image 185
Rein Avatar answered Sep 20 '22 06:09

Rein


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.

like image 31
SunGa Avatar answered Sep 19 '22 06:09

SunGa