I am writing an Android application which writes data to a file several times a second, the overall file size is around 1MB, after that file gets erased and new file started. Should I be concerned about wearing out the phone’s flash memory, causing it to fail? Do you know if Android distributes writes onto different sectors to minimize flash memory degradation, even when the application writes a continuous file?
Does the logging system worked in a similar way? In other words if I log a lot (several records per second), will that affect the phone’s flash memory resource?
I am writing an Android application which writes data to a file several times
Share
Would not hurt to worry about that, but aside from flash write cycles, I’d rework app logic – 1MB is not that much, so buffering data in memory and flushing it to the file periodically (but less frequently) should speed your app (as I assume your writes are synchronous).
EDIT
Wiki got some figures for consideration: