Find type of bluetooth device whether mobile or laptop's or mac pc's
10,095
When you have BluetoothDevice you can call getBluetoothClass. Smart phones are expected to have PHONE_SMART value, while computers should have COMPUTER_* values (for example COMPUTER_DESKTOP or COMPUTER_LAPTOP).
Author by
androidGuy
Updated on June 25, 2022Comments
-
androidGuy almost 2 years
I am developing an android game application played using bluetooth. While searching for bluetooth device, results contain both mobile devices as well as mac pc/laptops. I would like to list only the mobile devices in my result list. Is it possible to find whether the device detected is mobile device or not?
-
beginner about 8 yearscan i get the device spec like bluetooth_headet or bluetooth connectivity in car from this method
-
nima moradi over 4 yearsdo anyone know what is code for gamepad or joystick