S Scantech Well-Known Member Licensed User Longtime User Mar 26, 2023 #1 I think target api 33 will not allow you to turn on or off the bluetooth? Api 31 is ok. Is this a restriction with Google?
I think target api 33 will not allow you to turn on or off the bluetooth? Api 31 is ok. Is this a restriction with Google?
Erel B4X founder Staff member Licensed User Longtime User Mar 26, 2023 #2 Which error have you encountered? I don't recommend setting targetSdkVersion to 33 yet. Upvote 0
S Scantech Well-Known Member Licensed User Longtime User Mar 27, 2023 #3 No errors. Here is an attached example. Change the targetSdkVersion from 33 to 31 for testing. Attachments TestingBT.zip 9.5 KB · Views: 155 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2023 #4 You can check the behavioral changes related to targetSdkVersion=33 here: https://developer.android.com/about/versions/13/behavior-changes-13 Upvote 0
You can check the behavioral changes related to targetSdkVersion=33 here: https://developer.android.com/about/versions/13/behavior-changes-13
S Scantech Well-Known Member Licensed User Longtime User Mar 27, 2023 #5 I think it is Deprecated as per link. I am not surprised at all. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 28, 2023 #6 True, it is actually more than deprecation. It doesn't work with targetSdkVersion >= 33 (on Android 13+ devices). https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable() I will add a note about it in the documentation. Upvote 0
True, it is actually more than deprecation. It doesn't work with targetSdkVersion >= 33 (on Android 13+ devices). https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable() I will add a note about it in the documentation.