HI.
my program its ok on Android 9 , but fail on Android 10
a message is => java.io.FileNotFoundException: /storage/emulated/0/eTOP.sql: open failed: EACCES (Permission denied)
Tanks for solution;
nelson.
my program its ok on Android 9 , but fail on Android 10
a message is => java.io.FileNotFoundException: /storage/emulated/0/eTOP.sql: open failed: EACCES (Permission denied)
Tanks for solution;
nelson.
B4X:
Dim Explanation As String = "Conceda permissão para ler e gravar na memória externa"
Wait For (RequestPermissionWithExplanation(rp.PERMISSION_WRITE_EXTERNAL_STORAGE, Explanation)) Complete (Success As Boolean)
If Success = False Then
ToastMessageShow("Permissão não concedida. Você talvez não consiga enviar pedidos por e-mail.", True)
Else
'ToastMessageShow("Permissão concedida.", True)
End If
If File.Exists(File.DirRootExternal, "eTOP.sql") = False Then
[B]File.Copy(File.DirAssets, "eTOP.sql", File.DirRootExternal, "eTOP.sql")[/B]
End If