title: Android detect Bluetooth disconnect immediately Max 2 seconds
body: <p>I'm looking for a way to detect the disconnection of a Bluetooth device immediately after it has happened (2 second max), typically in a "device too far" scenario or Device battery is dead. Currently I can detect it with a <code>BroadcastReceiver</code> by getting a <code>BluetoothDevice.ACTION_ACL_DISCONNECTED</code>, but it takes about 16 to 20 seconds to fire.</p>
  
  <ol>
  <li>Is there any way to get notified in 2 seconds Max.</li>
  <li>I used BroadcatReceiver but it is not fast enough to get alert in 2 seconds Max, so is there any other kind of approach available to get notification quickly that bluetooth is disconnected.</li>
  <li>I use this createRfcommSocketToServiceRecord(UUID); to connect a paired device and i am bound to use it using UUID.</li>
  </ol>
  
  <p>I have visited a lot of links regarding this issue, but no one matches with my needs.that's why any help would be appreciated. </p>
  
  <p>thanks.</p>