as already known, from SDK-33 BluetoothAdmin.Enable does not work anymore.
How should we proceed now? Just ask the user with a messagebox to enable the Bleutooth by himself?
Just showing the message "Error enabling Bluetooth adapter" doesn't help much.
Is there a way to get the BluetoothAdmin Enable/Disable function to work that turns Bluetooth off and on? On Android 12 BTAdmin.Enable returns true and Bluetooth is turned on. On Android 13 BTAdmin.Enable returns false the Bluetooth is not turned on BTAdmin.Disable also returns the same...
Is there a way to get the BluetoothAdmin Enable/Disable function to work that turns Bluetooth off and on? On Android 12 BTAdmin.Enable returns true and Bluetooth is turned on. On Android 13 BTAdmin.Enable returns false the Bluetooth is not turned on BTAdmin.Disable also returns the same...
if admin.Enable return false all you can do is to show a info to the user that he has to enable it in the settings to use the feature.
Maybe you can point the user to the right settings dialogue in the device. Not sure if there is a specific intent for it though. Try to search the forum about.
I want to activate my device's Bluetooth connection using the built-in settings app, Can anyone help me with the code to do this? I'm thinking I need to use StartActivityForResult, but I'm not sure how to use it. Thanks