Hi,
I am using the example here as a base. SaveAs Code Snippet I am not using pages, replaced GetBA per instructions.
Using a Galaxy Tab A7 Lite with Android version 13 for a testing device. Compiling to SDK version 33.
The problem I am having is the file saved using SaveAs is always 0 B in size.
I can verify that there is data in the file with
The SaveAs
Also tried "application/octet-stream" without a difference.
Tried different locations when saving and tried changing and not changing the file name, alway creates a file 0 B in size without content.
I am using the example here as a base. SaveAs Code Snippet I am not using pages, replaced GetBA per instructions.
Using a Galaxy Tab A7 Lite with Android version 13 for a testing device. Compiling to SDK version 33.
The problem I am having is the file saved using SaveAs is always 0 B in size.
I can verify that there is data in the file with
Read File:
Sub ReadString
MsgboxAsync(File.ReadString(File.DirInternal, "84_Text.txt"), "")
End Sub
Save Button:
Private Sub Button1_Click
Wait For (SaveAs(File.OpenInput(File.DirInternal, "84_Text.txt"), "text/plain", "84_Text.txt")) Complete (Success As Boolean)
Log("File saved successfully? " & Success)
End Sub
Tried different locations when saving and tried changing and not changing the file name, alway creates a file 0 B in size without content.