Filippo Expert Licensed User Longtime User Jun 14, 2023 #1 Hi, 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. Does anyone have a better solution? Ciao Filippo
Hi, 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. Does anyone have a better solution? Ciao Filippo
DonManfred Expert Licensed User Longtime User Jun 14, 2023 #2 BluetoothAdmin Enable/Disable function stopped working on Android 13 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... www.b4x.com It is a new restriction. Upvote 0
BluetoothAdmin Enable/Disable function stopped working on Android 13 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... www.b4x.com It is a new restriction.
Filippo Expert Licensed User Longtime User Jun 14, 2023 #3 DonManfred said: BluetoothAdmin Enable/Disable function stopped working on Android 13 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... www.b4x.com It is a new restriction. Click to expand... That is already clear to me. The question is: how should we proceed? Upvote 0
DonManfred said: BluetoothAdmin Enable/Disable function stopped working on Android 13 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... www.b4x.com It is a new restriction. Click to expand... That is already clear to me. The question is: how should we proceed?
DonManfred Expert Licensed User Longtime User Jun 14, 2023 #4 Filippo said: The question is: how should we proceed? Click to expand... 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. Upvote 0
Filippo said: The question is: how should we proceed? Click to expand... 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.
Filippo Expert Licensed User Longtime User Jun 14, 2023 #5 DonManfred said: Not sure if there is a specific intent for it though. Try to search the forum about. Click to expand... Perfekt! Danke Manfred. How do I activate the Bluetooth Connection Intent? 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 www.b4x.com Upvote 1
DonManfred said: Not sure if there is a specific intent for it though. Try to search the forum about. Click to expand... Perfekt! Danke Manfred. How do I activate the Bluetooth Connection Intent? 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 www.b4x.com