Android Question Problem with "targetSdkVersion = 26"

Tempomaster

Active Member
Licensed User
Longtime User
Hello,

I have probably made a serious mistake

I copied a line from an example and pasted it in the manifest editor:

<uses-sdk android: minSdkVersion = "16" android: targetSdkVersion = "26" />

The version 26 is wrong. My app is not suitable for this yet. The app is already uploaded. I noticed the error too late. The overlay window now leads to an error because the permissions are missing. Some devices can no longer write to the paths with File.DirRootExternal. There is no way back in the Play Store.

I am a bit helpless. Is there a rescue?

Best regards,
Gunnar
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Google won't let you downgrade the sdk anyway. Only way: Fix all the issues. It's simpler than you think. Just add a new sub asking for all the permissions your app needs. Use "RuntimePermissions.GetSafeDirDefaultExternal" instead.
 
Upvote 0

Tempomaster

Active Member
Licensed User
Longtime User
Thank you for your help. Then I have to get to work. I feared it. If you do not have work, which ones do.:)
 
Upvote 0

Sapta

Member
Licensed User
Longtime User
Sample :

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Rp.CheckAndRequest(Rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    Wait For Activity_PermissionResult (Permission As String, ResultStorage As Boolean)
    If ResultStorage = False Then
        Msgbox ("Please allow permission","Information")
        ...
    End If
    ...
End Sub
 
Upvote 0

Tempomaster

Active Member
Licensed User
Longtime User
Many Thanks. This tip has led to the goal.:) The first problem with PERMISSION_WRITE_EXTERNAL_STORAGE is solved.

Now I have to take care of the overlay window.

Best regards,
Gunnar
 
Upvote 0
Top