Bluetooth device discovery in Android — startDiscovery()
Goal: Build an Android app that discovers the names and addresses of BT devices within range and submits their values to a webservice. BT devices have not been previously bonded to the host device, I just want to poll everything as I walk about. What I've done: Pored over documentation. Implemented a local instance of the host device's BT adapter. Implemented a notification to enable BT if it isn't enabled. Registered Broadcast Receivers and Intents to parse the ACTION_FOUNDs coming off of startDiscovery() . Registered BLUETOOTH and BLUETOOTH_ADMIN permissions in the manifest. Things work (as