While developing a app, I used internal storage to save a file.
- Firstly, I needed to check a file existence. For me, this worked. (https://stackoverflow.com/questions/8867334/check-if-a-file-exists-before-calling-openfileinput)
I used like this but it didn’t work. In my thought, it is because I called it in another thread and it made a problem.
- There are some functions to do read/write. This page helped me to decide which to use.
- Finally, this page solved my problem. It was also related to the thread as I thought.