Android Question Runtime permission problem from SDK 19 to SDK 26

Discussion in 'Android Questions' started by elpic76, Sep 11, 2018.

  1. elpic76

    elpic76 Member Licensed 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:

    Code:
    '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: http://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:
    Code:
    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.
     
  2. elpic76

    elpic76 Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice