Hi
I thought the file will be deleted when the app exits ie when the UserClosed flag is true. But that is not the case.
What is wrong?
I thought the file will be deleted when the app exits ie when the UserClosed flag is true. But that is not the case.
What is wrong?
B4X:
Sub Activity_Create(FirstTime As Boolean)
If File.Exists(File.DirRootExternal,"1.txt") = False Then
File.OpenOutput(File.DirRootExternal,"1.txt",False)
End If
end sub
B4X:
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed then
File.Delete(File.DirRootExternal,"1.txt")
end if
end sub