Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

FileEncoder.close()

Rank

Total Posts: 23

Joined 2013-02-06

PM

It seems that .close() is doing more than

public void close()

Updates the data size in the file header, writes the CRC, and closes the file.


In Android (Java) this can take 3.5 seconds for a 90 minute activity generating a 138 kB file. FileEncoder must be backed-up with a buffered writer which is flushed during .close().

Is it possible to set a smaller buffer or flush the buffer so closing doesn't interrupt the user experience?      
RankRank

Total Posts: 34

Joined 2013-01-28

PM

Hi driscollta,

Thanks for bringing this to our attention. We have a fix pending, which you will see in the next FITSDK Release 16.60.

-Evan