Hi to Everybody here
I am facing a problem with Bluetooth management. My original App, developed years ago, had no problem to connect to Bluetooth devices, and still has no problems, maintaining it "as is". As long as I am reworking it, during execution, I see the Android message informing that the App may be dangerous because developed for previous versions etc. Annoyed by this message, I checked the manifest and changed the "android:targetSdkVersion" from the original 26 to 31. The result is that the App crashes saying that I must add BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions. Adding these permissions to the manifest has no effect. Being suspicious on my code, I used the original Bluetooth example posted here by Erel, and the problem is the same. The apparent conclusion is that bluetooth works only for versions <=26 ... Of course this is rather weird and I hope to miss something...
Thanks in advance for any suggestion..
I am facing a problem with Bluetooth management. My original App, developed years ago, had no problem to connect to Bluetooth devices, and still has no problems, maintaining it "as is". As long as I am reworking it, during execution, I see the Android message informing that the App may be dangerous because developed for previous versions etc. Annoyed by this message, I checked the manifest and changed the "android:targetSdkVersion" from the original 26 to 31. The result is that the App crashes saying that I must add BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions. Adding these permissions to the manifest has no effect. Being suspicious on my code, I used the original Bluetooth example posted here by Erel, and the problem is the same. The apparent conclusion is that bluetooth works only for versions <=26 ... Of course this is rather weird and I hope to miss something...
Thanks in advance for any suggestion..