/**
  * Get the Bluetooth device type of the remote device.
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
  *
  * @return the device type {@link #DEVICE_TYPE_CLASSIC}, {@link #DEVICE_TYPE_LE} {@link
  *     #DEVICE_TYPE_DUAL}. {@link #DEVICE_TYPE_UNKNOWN} if it's not available
  */
 public int getType() {
   if (sService == null) {
     Log.e(TAG, "BT not enabled. Cannot get Remote Device type");
     return DEVICE_TYPE_UNKNOWN;
   }
   try {
     return sService.getRemoteType(this);
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return DEVICE_TYPE_UNKNOWN;
 }