Bluetooth admin error

I am testing bluetooth on my Pixel 7. When I use the Bluetooth_Admin.Enable command the Error Occured block returns this message: Device has no Bluetooth

This is odd because the .Has Bluetooth returns true.

I also requested all 3 bluetooth permissions and they are all granted.

Buetooth is enabled on the device. It is even connected to a device.
Any help is appreciated.

After some more reading it seems to be an issue with SDK 33. Still not sure how to fix it though.

you can’t enable bluetooth programmatically anymore

Enabling/disabling bluetooth without user consent is not more possible. You should use android.bluetooth.adapter.action.REQUEST_ENABLE together with the activity starter instead.

Taifun

Hi Taifun,

I actually saw this on your website and tried it too. The activitystarter returns without error and without any feedback. I don’t see any popups or anything I should click when i invoke this code.

Just to clarify. This is the code. and the textbox says:
Activity Starter Result:
So there is no result.

I finally figured out this issue. When bluetooth is already enabled it returns without result. But oddly enough, now when I try to scan for devices it says: Bluetooth is not enabled.