One of the application users has this error
date.txt is just a few bites text file - less than 1Kb -it stores a tick of the moment when the app becomes inactive so when the app becomes active again we can calculate a time difference and if it's more than 15 minutes the user has to login again.
Here is a code
My question is - has anyone here had this problem?
And how to check available storage amount?
Thanks.
B4X:
Main_Application_Inactive Error writing file: Error DomainNSCocoaErrorDomain Coded0 "You can’t save the file “date.txt” because the volume “Data” is out of space."
date.txt is just a few bites text file - less than 1Kb -it stores a tick of the moment when the app becomes inactive so when the app becomes active again we can calculate a time difference and if it's more than 15 minutes the user has to login again.
Here is a code
B4X:
Private Sub Application_Inactive
Try
File.WriteString(File.DirDocuments,"date.txt",DateTime.Now)
Log("We are Inactive" & TAB & modFun.Today & TAB & modFun.Now )
Catch
Log("Main_Application_Inactive " & LastException.description)
modFun.ShowError("Main_Application_Inactive " & LastException.description)
End Try
End Sub
My question is - has anyone here had this problem?
And how to check available storage amount?
Thanks.
Last edited: