0

In my app I am checking the discovered bluetooth devices type by Class bluetoothClass.Device I want to check if device is tablet or not but I can not find anything to check is device tablet or not.

I am checking devices here as follows:

if (device.bluetoothClass.deviceClass == BluetoothClass.Device.PHONE_SMART
                ||
                device.bluetoothClass.majorDeviceClass == BluetoothClass.Device.Major.PHONE)
                pairedDevicesList.add(device)
        }

I am not able to check for if discovered device is tablet or not? I will be thankful for any guidence and helpful material.

Assad khan
  • 161
  • 2
  • 9

1 Answers1

1

According to the Bluetooth specifications, this is possible.

However, it seems that the constant value (284) for a tablet is missing in the current Android documentation. It stops with COMPUTER_WEARABLE. So you can try to define your own constant.

Risto
  • 983
  • 7
  • 14