Android Question It does not work: rp.CheckAndRequest(Starter.rp.PERMISSION_READ_EXTERNAL_STORAGE)

jose sanjuan

Member
Licensed User
Longtime User
Can somebody help me?

The following code does not work with sdk 33:

B4X:
       Dim rp As RuntimePermissions
       rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)
        Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
        If Result=False Then
            Exitapp
        End If

Returns false, does not request permission.
 

agraham

Expert
Licensed User
Longtime User
No, it won't work due to file access restrictions in later versions of Android. See here for things you can use

If you don't want your app to be in the Play Store see here

See API changes here
 
Upvote 1
Top