/**
  * Return true if Bluetooth is currently enabled and ready for use.
  *
  * <p>Equivalent to: <code>getBluetoothState() == STATE_ON</code>
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
  *
  * @return true if the local adapter is turned on
  */
 public boolean isEnabled() {
   try {
     return mService.isEnabled();
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return false;
 }