I am new or maybe late to check this platform. I am stuck at this point. I want my app to just scan bluetooth devices and list them in a list picker. But the app when initializes throws error.
Hi Saim,
Welcome to the Kodular community!
Do you really need all those permissions?
And the correct way to request permissions is to ask for them one at a time, if one is granted, then you request the next, and so on.
Our dear Taifun has already answered all these questions.
Thank you for your reply. I added permissions in frustration to see if anyone resolves the issue. I will rearrange the permissions. But the error is thrown on the first permission I asked. Will it go away? Also sorry for not adding bluetooth scan function call before listing the devices.
I simplified the app to understand the issue. Can someone say what is the issue here. I am at android 15.
I imagine you want to see the devices and possibly connect to one of them, so you will only need BLUETOOTH_CONNECT and BLUETOOTH_SCAN.
the error you see is probably because you’re requesting a permission that’s deprecated in your Android version, but you can remove it anyway since I don’t think you need it.
Why do you need this permission?
Thanks for your reply. I understand I don’t need the permission. But even with only bluetooth permission asked, it showed the same error. So I added these permission to read storage. But still the problem persists.
Thanks for reply. I know don’t need these permissions to access bluetooth. But, even with only the bluetooth permission asked, the app used to show the error 908: Read_external_storage permission denied. I don’t know why. So I added the read storage permissions to solve this issue, but the problem still continued.
???
Remove any blocks from screen Initialize see if it persist and add the Bluetooth only.
I think the problem is actually in the BluetoothAdmin component, which incorrectly requests the READ_EXTERNAL_STORAGE permission, which is deprecated in recent versions.
This was an old bug where the image picker had this exact issue.
Now i get it, requesting bluetooth is not supported in API 33+
Check out here there a guide, i think it will help you
I think the best approach is to check with the Bluetooth.Enabled block whether it’s active, and if not, ask the user to enable Bluetooth (as shown by Audiora_Streams) and then use Bluetooth Client or Server to connect or accept connections.
In these two the READ_EXTERNAL_STORAGE permission isn’t present.










