Reputation: 301
In my application I have to create 4 .dat files to store some information for my app. But I have to change them in my app in "settings activity".
I created them in raw catalog: /raw/1.txt /raw/2.txt /raw/3.txt /raw/4.txt
I can read them but i can't write them.
So, where i can store a simple dat file that can be modified.
Upvotes: 0
Views: 1108
Reputation: 25755
You can't write to files located in the res/raw
-folder because those files are static.
Instead, you could use the "Internal Storage", as illustrated here.
Upvotes: 1
Reputation: 1559
I would use the phone's internal storage. This reference gives examples of reading and writing.
Upvotes: 0