Find the type of Bluetooth device, be it a mobile or laptop or Mac

I am developing a bluetooth Android application. When searching for a Bluetooth device, the results include both mobile devices and mac pc / laptops. I would like to list only mobile devices in my list of results. Is it possible to determine if a device is installed by a mobile device or not?

+3
android bluetooth device
source share
1 answer

If you have a BluetoothDevice , you can call getBluetoothClass . Smartphones are expected to have PHONE_SMART , while computers should have COMPUTER_ * values ​​(e.g. COMPUTER_DESKTOP or COMPUTER_LAPTOP ).

+13
source share

All Articles