private void EnableBluetooth() { var adapter = BluetoothHelper.ObtainBluetoothAdapter(this); if (!adapter.IsEnabled) { adapter.Enable(); } }
private void DisableBluetooth() { var adapter = BluetoothHelper.ObtainBluetoothAdapter(this); if (CanDisableBluetooth(adapter)) { adapter.Disable(); } }