BluetoothStatusCodes
  public
  
  final
  
  class
  BluetoothStatusCodes
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.bluetooth.BluetoothStatusCodes | 
A class with constants representing possible return values for Bluetooth APIs. General return values occupy the range 0 to 199. Profile-specific return values occupy the range 200-999. API-specific return values start at 1000. The exception to this is the "UNKNOWN" error code which occupies the max integer value.
Summary
| Constants | |
|---|---|
| int | ERROR_BLUETOOTH_NOT_ALLOWEDError code indicating that the API call was initiated by neither the system nor the active user. | 
| int | ERROR_BLUETOOTH_NOT_ENABLEDError code indicating that Bluetooth is not enabled. | 
| int | ERROR_DEVICE_NOT_BONDEDError code indicating that the Bluetooth Device specified is not bonded. | 
| int | ERROR_GATT_WRITE_NOT_ALLOWEDA GATT writeCharacteristic request is not permitted on the remote device. | 
| int | ERROR_GATT_WRITE_REQUEST_BUSYA GATT writeCharacteristic request is issued to a busy remote device. | 
| int | ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSIONError code indicating that the caller does not have the  | 
| int | ERROR_PROFILE_SERVICE_NOT_BOUNDError code indicating that the profile service is not bound. | 
| int | ERROR_UNKNOWNIndicates that an unknown error has occurred. | 
| int | FEATURE_NOT_CONFIGUREDIndicates that the feature status is not configured yet. | 
| int | FEATURE_NOT_SUPPORTEDIndicates that the feature is not supported. | 
| int | FEATURE_SUPPORTEDIndicates that the feature is supported. | 
| int | SUCCESSIndicates that the API call was successful. | 
| Inherited methods | |
|---|---|
Constants
ERROR_BLUETOOTH_NOT_ALLOWED
public static final int ERROR_BLUETOOTH_NOT_ALLOWED
Error code indicating that the API call was initiated by neither the system nor the active user.
Constant Value: 2 (0x00000002)
ERROR_BLUETOOTH_NOT_ENABLED
public static final int ERROR_BLUETOOTH_NOT_ENABLED
Error code indicating that Bluetooth is not enabled.
Constant Value: 1 (0x00000001)
ERROR_DEVICE_NOT_BONDED
public static final int ERROR_DEVICE_NOT_BONDED
Error code indicating that the Bluetooth Device specified is not bonded.
Constant Value: 3 (0x00000003)
ERROR_GATT_WRITE_NOT_ALLOWED
public static final int ERROR_GATT_WRITE_NOT_ALLOWED
A GATT writeCharacteristic request is not permitted on the remote device.
Constant Value: 200 (0x000000c8)
ERROR_GATT_WRITE_REQUEST_BUSY
public static final int ERROR_GATT_WRITE_REQUEST_BUSY
A GATT writeCharacteristic request is issued to a busy remote device.
Constant Value: 201 (0x000000c9)
ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION
public static final int ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION
Error code indicating that the caller does not have the Manifest.permission.BLUETOOTH_CONNECT permission.
Constant Value: 6 (0x00000006)
ERROR_PROFILE_SERVICE_NOT_BOUND
public static final int ERROR_PROFILE_SERVICE_NOT_BOUND
Error code indicating that the profile service is not bound. You can bind a profile service
 by calling BluetoothAdapter.getProfileProxy.
Constant Value: 9 (0x00000009)
ERROR_UNKNOWN
public static final int ERROR_UNKNOWN
Indicates that an unknown error has occurred.
Constant Value: 2147483647 (0x7fffffff)
FEATURE_NOT_CONFIGURED
public static final int FEATURE_NOT_CONFIGURED
Indicates that the feature status is not configured yet.
Constant Value: 30 (0x0000001e)
FEATURE_NOT_SUPPORTED
public static final int FEATURE_NOT_SUPPORTED
Indicates that the feature is not supported.
Constant Value: 11 (0x0000000b)
FEATURE_SUPPORTED
public static final int FEATURE_SUPPORTED
Indicates that the feature is supported.
Constant Value: 10 (0x0000000a)
SUCCESS
public static final int SUCCESS
Indicates that the API call was successful.
Constant Value: 0 (0x00000000)
