Hi,
I have a code that is running in an embedded device. When I save settings and I turn off the device, my settings are lost because they still are in disk cache.
To solve this I created this function:
I would like to know if there is some specific function embedded in B4j to avoid calling external "sync".
Thank you very much,
Tommaso
I have a code that is running in an embedded device. When I save settings and I turn off the device, my settings are lost because they still are in disk cache.
To solve this I created this function:
B4X:
Sub syncExecute
Dim shl As Shell
shl.Initialize("syncEvent", "sync", Null)
shl.WorkingDirectory = "/home/pi"
shl.Run(10000) 'set a timeout of 10 seconds
End Sub
I would like to know if there is some specific function embedded in B4j to avoid calling external "sync".
Thank you very much,
Tommaso