Documentation for this section has not yet been entered.
Start the remote device discovery process.
The discovery process usually involves an inquiry scan of about 12 seconds, followed by a page scan of each new device to retrieve its Bluetooth name.
This is an asynchronous call, it will return immediately. Register for BluetoothAdapter.ActionDiscoveryStarted and BluetoothAdapter.ActionDiscoveryFinished intents to determine exactly when the discovery starts and completes. Register for BluetoothDevice.ActionFound to be notified as remote Bluetooth devices are found.
Device discovery is a heavyweight procedure. New connections to remote Bluetooth devices should not be attempted while discovery is in progress, and existing connections will experience limited bandwidth and high latency. Use BluetoothAdapter.CancelDiscovery to cancel an ongoing discovery. Discovery is not managed by the Activity, but is run as a system service, so an application should always call BluetoothAdapter.CancelDiscovery even if it did not directly request a discovery, just to be sure.
Device discovery will only find remote devices that are currently discoverable (inquiry scan enabled). Many Bluetooth devices are not discoverable by default, and need to be entered into a special mode.
If Bluetooth state is not BluetoothAdapter.STATE_ON, this API will return false. After turning on Bluetooth, wait for BluetoothAdapter.ActionStateChanged with BluetoothAdapter.STATE_ON to get the updated value.