I'm logging what a user does in a file on the sdcard.
To ensure the buffers are flushed and the file closed properly, when should I close the file ? especially relevant if I want the user to remove the card and hand it to someone.
I can use activity.finish but I know this is not recommended.
should I close the file on acitivy.pause and reopen it on resume ?
To ensure the buffers are flushed and the file closed properly, when should I close the file ? especially relevant if I want the user to remove the card and hand it to someone.
I can use activity.finish but I know this is not recommended.
should I close the file on acitivy.pause and reopen it on resume ?