Hi,
I am having issue with this simple code I took from the Erel's TextEditor example.
basically if I simply press "save" button when the file manager comes up, it works fine. If I select an existing file it works ok most of the time (I know it does not make sense but I have the impression that it works better if I do it "quickly", if I do it "slowly" it does not work and it does not even get to the "Success" evaluation.). I type the file name molst of the times it does not work again no messages. and if I retry, I see that the file is actually created but with size 0.
Any idea?
thanks
I am having issue with this simple code I took from the Erel's TextEditor example.
B4X:
Private Sub btnBackup_Click
Wait For (SaveFile(File.OpenInput(File.DirInternal, "BinaryFileToSave"), "application/octet-stream", "BinaryFileToSave")) Complete (Success As Boolean)
If Success Then
ToastMessageShow("File successfully saved to the selected folder",False)
Else
ToastMessageShow("File not saved to the selected folder",False)
End If
End Sub
basically if I simply press "save" button when the file manager comes up, it works fine. If I select an existing file it works ok most of the time (I know it does not make sense but I have the impression that it works better if I do it "quickly", if I do it "slowly" it does not work and it does not even get to the "Success" evaluation.). I type the file name molst of the times it does not work again no messages. and if I retry, I see that the file is actually created but with size 0.
Any idea?
thanks