![]() ![]() This problem is stated in several places. Bluetooth devices with class 0x00 are ignoredĭigging into this detection problem without forcing the bluetooth devices to discoverable mode lead us to a point where we found Bluetooth device which advertises itself as class 0×00 is ignored automatically while running scan for nearby BT devices. For Android, I found no API to discover/detect BT devices which are turned on but not in discoverable mode. I started with studying Bluetooth protocols and found the underlying protocols used for bluetooth detection, connection and pairing. I started searching for a solution to achieve this goal. What I want is to detect all Bluetooth devices nearby without forcing them to be discoverable. ![]() Hence, this doesn't serves my purpose, as the bluetooth devices need to be discoverable to be detected by a bluetooth scan by Android. To do so, we have a BluetoothAdapter class in Android which has a startDiscovery function to scan for bluetooth devices nearby. My primary target is to detect all nearby bluetooth devices. So before someone starts reading, I want to clarify that, I could not find any way to detect a bluetooth device nearby which is turned on but not discoverable. Thought this might be useful to post my findings here. So, here's all I found after reading blogs, threads, documentations, SO answers etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |