How to delete all temp files which created by createTempFile when exit an App in android?

前端 未结 7 2340
清酒与你
清酒与你 2021-02-07 15:06

I use the following code to create some temp files, and wrapped tem as inputsteam to send to client side.

I understand that the temp files can be deleted automatically b

7条回答
  •  别那么骄傲
    2021-02-07 15:30

    Unfortunately it appears you have to delete these files one by one, by previously saving them in an array.

    That being said, if you check Android Developers page on this issue it makes it as if you could delete the cached files "on a regular basis and also regularly delete other files you no longer need". However I don't think there is an explanation on how to do it.

提交回复
热议问题