I'm trying to use Bluetooth in .Net Maui app using the following code :
static BluetoothAdapter bluetoothAdapter;
bluetoothAdapter = BluetoothAdapter.DefaultAdapter;
But I'm getting warning saying:
'BluetoothAdapter.DefaultAdapter' is obsoleted on: 'Android' 31.0 and later
How can I solve that?