urbanairship-core/src/main/java/com/urbanairship/analytics/data/EventApiClient.java
boolean isBluetoothEnabled() {
        if (!ManifestUtils.isPermissionGranted(Manifest.permission.BLUETOOTH)) {
            // Manifest missing Bluetooth permissions
            return false;
        } else {
            // Code from Android Developer: http://developer.android.com/guide/topics/connectivity/bluetooth.html
            BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

            //noinspection ResourceType - Suppresses the bluetooth permission warning
            return bluetoothAdapter != null && bluetoothAdapter.isEnabled();
        }
    }
/**
     * Gets the Bluetooth enable/disable status.
     *
     * @return <code>true</code> if Bluetooth is enabled, otherwise <code>false</code>.
     */
Gets the Bluetooth enable/disable status.
@return true if Bluetooth is enabled, otherwise false.
Gets the Bluetooth enable / disable status . @return true if Bluetooth is enabled otherwise false .
boolean isBluetoothEnabled() {
        if (!ManifestUtils.isPermissionGranted(Manifest.permission.BLUETOOTH)) {
            return false;
        } else {
            BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
            return bluetoothAdapter != null && bluetoothAdapter.isEnabled();
        }
    }
boolean isBluetoothEnabled ( ) { if ( ! ManifestUtils . isPermissionGranted ( Manifest . permission . BLUETOOTH ) ) { return false ; } else { BluetoothAdapter bluetoothAdapter = BluetoothAdapter . getDefaultAdapter ( ) ; return bluetoothAdapter != null && bluetoothAdapter . isEnabled ( ) ; } }
Gets the Bluetooth enable/disable status.
Gets the Bluetooth enable / disable status .
// Manifest missing Bluetooth permissions // Code from Android Developer: http://developer.android.com/guide/topics/connectivity/bluetooth.html //noinspection ResourceType - Suppresses the bluetooth permission warning