Android - Check if the bluetooth is supported and enabled

public boolean isBluetoothEnabled() {
    BluetoothAdapter bAdapter = BluetoothAdapter.getDefaultAdapter();
    // Device does not support Bluetooth    return bAdapter != null && bAdapter.isEnabled();
}

Comments

Popular posts from this blog

Android - Using KeyStore to encrypt and decrypt the data

Stack and Queue

Java Reflection API