Creating temporary files in Android

What’s the best way to create a temporary file in Android?

Can File.createTempFile be used? The documentation is very vague about it.

In particular, it’s not clear when temporary files created with File.createTempFile are deleted, if ever.

6 Answers
6

Leave a Comment