I use the Internal Storage to store some list I have to keep between app restart.
For that I write into a File that I get by this way
val file = File(context.filesDir.absoluteFile.toString() + "/" + nameOfFile)
It works but some time (not each time) when I upload a new version of my app to the PlayStore data are erased. That realy anaoying because my users have to reset these data manualy.
I don't understand why there are deleted, any idea, any solution? Thanks.