• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Save app state by writing to file

I'm writing an app. I intend to save the state of the app by writing the state to a textfile, since apps sometimes crash. The user will then be given an option to restore the last game when restarting the app. Is it a good idea? The file may be written 1000 per hour. I know Linux spreads out the writing to disk by shifting the pages which are written. Will it ruin the phones flash disk?
 
You're ok writing to internal storage. 1000 times an hour seems like a lot of saves though. Why do you need to do it so often? A common strategy is to save at certain designated checkpoints.
 
Back
Top Bottom