Good morning, I have an application in B4A that enables BLUETOOTH, which I then use with a printer.
I've always worked perfectly with tablets running Android 14 and lower. Now I've changed tablets and am running Android 15. My application no longer works because it gives me this error:
java.lang.SecurityException: android.permission.BLUETOOTH_SCAN permission required for AttributionSource { uid = 10355, packageName = anysoftware.b4a.samples.bluetooth, attributionTag = null, token = android.os.BinderProxy@892f1fd, next = null }: starting detection.
I think I'm using the appropriate Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="34"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.BLUETOOTH_ADVERTISE)
AddPermission(android.permission.BLUETOOTH_CONNECT)
AddPermission(android.permission.BLUETOOTH_SCAN)
'End of default text.'
(Please note that my app will never be available on Google Play.)
Thanks in advance for any suggestions.
I've always worked perfectly with tablets running Android 14 and lower. Now I've changed tablets and am running Android 15. My application no longer works because it gives me this error:
java.lang.SecurityException: android.permission.BLUETOOTH_SCAN permission required for AttributionSource { uid = 10355, packageName = anysoftware.b4a.samples.bluetooth, attributionTag = null, token = android.os.BinderProxy@892f1fd, next = null }: starting detection.
I think I'm using the appropriate Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="34"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.BLUETOOTH_ADVERTISE)
AddPermission(android.permission.BLUETOOTH_CONNECT)
AddPermission(android.permission.BLUETOOTH_SCAN)
'End of default text.'
(Please note that my app will never be available on Google Play.)
Thanks in advance for any suggestions.