Dear all,
Greetings,
I try to access external files from my app (i.e. File.DirRootExternal) but access get error.
I used this code to grant Permissions :
</
Sub File_Permission
Dim PermissionsGoodFlag As Boolean = True
If PermissionsGoodFlag Then
rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, YaeOrNay As Boolean)
If YaeOrNay = False Then
PermissionsGoodFlag = False
End If
End If
PermissionsGoodFlag = True
If PermissionsGoodFlag Then
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, YaeOrNay As Boolean)
If YaeOrNay = False Then
PermissionsGoodFlag = False
End If
End If
End Sub
>
and even this is the content of manifest file:
</
AddManifestText(
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="31"/>
<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.DarkTheme)
AddPermission("android.permission.READ_EXTERNAL_STORAGE")
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
'End of default text.
>
What I must add to get a full Permissions to access external files
Best regards
Greetings,
I try to access external files from my app (i.e. File.DirRootExternal) but access get error.
I used this code to grant Permissions :
</
Sub File_Permission
Dim PermissionsGoodFlag As Boolean = True
If PermissionsGoodFlag Then
rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, YaeOrNay As Boolean)
If YaeOrNay = False Then
PermissionsGoodFlag = False
End If
End If
PermissionsGoodFlag = True
If PermissionsGoodFlag Then
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, YaeOrNay As Boolean)
If YaeOrNay = False Then
PermissionsGoodFlag = False
End If
End If
End Sub
>
and even this is the content of manifest file:
</
AddManifestText(
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="31"/>
<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.DarkTheme)
AddPermission("android.permission.READ_EXTERNAL_STORAGE")
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
'End of default text.
>
What I must add to get a full Permissions to access external files
Best regards