public static boolean isBleEnabled() {
        final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        return adapter != null && adapter.isEnabled();
    }
Checks whether Bluetooth is enabled.

@return true if Bluetooth is enabled, false otherwise.
app/src/main/java/no/nordicsemi/android/nrfmesh/utils/Utils.java