# Print output for @column tags ?> BluetoothStatusCodes - Android SDK | Android Developers

Most visited

Recently visited

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 99. Profile-specific return values occupy the range 100-999. API-specific return values start at 1000. The exception to this is the "other" error code which occupies the max integer value.

Summary

Constants

int ERROR_BLUETOOTH_NOT_ALLOWED

Error code indicating that the API call was initiated by neither the system nor the active Zuser

int ERROR_BLUETOOTH_NOT_ENABLED

Error code indicating that Bluetooth is not enabled

int ERROR_DEVICE_NOT_BONDED

Error code indicating that the Bluetooth Device specified is not bonded

int ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION

Error code indicating that the caller does not have the Manifest.permission.BLUETOOTH_CONNECT permission

int ERROR_UNKNOWN

Indicates that an unknown error has occurred has occurred.

int SUCCESS

Indicates 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 Zuser

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_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_UNKNOWN

public static final int ERROR_UNKNOWN

Indicates that an unknown error has occurred has occurred.

Constant Value: 2147483647 (0x7fffffff)

SUCCESS

public static final int SUCCESS

Indicates that the API call was successful

Constant Value: 0 (0x00000000)