Android Question Runtime permission problem from SDK 19 to SDK 26

elpic76

Member
Licensed User
Longtime User
Hi,
I'm trying to publish an app on Google Play but I'm facing some problems and the app is not working.
Until now the app was compiled using SDK19 and all was ok; then I switched to SDK26 to be compliant to Google needs but the app isn't working anymore.

I'm using BLE, internet connection and wakelock of the phone and those aren't dangerous permissions.
I think I have problems with the management of runtime permission so I included the RuntimePermissions (Version: 1.10) library in the project, below you find my manifest:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
'End of default text.

And from Logs -> List Permissions I have:
B4X:
BleManager2
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN

PhoneWakeState
android.permission.WAKE_LOCK

anywheresoftware.b4a.samples.httputils2service
android.permission.INTERNET

Service / Receiver
android.permission.WAKE_LOCK

I don't understand how to initialize/ implement / use the rp for the kind of permission I need.
Could you please give me some advice how to procede?

Best Regards
Mosè

P.S. How can I insert an image into a post? I wanted to insert an image of the Permission List but I wasn't able to uplad the file from my PC.
 
Top