title: Find all Bluetooth devices (headsets, phones etc) nearby, without forcing the devices in discoverable mode
body: <p><strong>My goal:</strong></p>
  
  <p>To detect all nearby Bluetooth devices(phones, headsets, etc.) from my Android application.</p>
  
  <p>Here's a nice example from <a href="https://github.com/googlearchive/android-BluetoothChat" rel="nofollow noreferrer">developer.android.com</a> which discovers the Bluetooth devices nearby along with the list of already paired devices. </p>
  
  <p><strong>My situation:</strong></p>
  
  <p>I had two Bluetooth headsets turned on and they were not being detected after a successful Bluetooth scan! So I dig into the problem and somewhere found that the Bluetooth headset needs to be switched to pairing mode in case of being detected by android. </p>
  
  <p>To switch the headsets in pairing mode, I had to long-press the power button while turning them on. And yes, finally, the Bluetooth headsets are now detected by the scan from my application.</p>
  
  <p><strong>My problem:</strong></p>
  
  <p>I want my headsets will be detected automatically without switching them in pairing mode. Couldn't find a way to detect all nearby Bluetooth devices which are turned on.</p>