How to save back to a file in the resource folder

I understand that I can open a file in a resource folder like this.

InputStream is = ((Activity) mView).getAssets().open("some.txt");

But what should I do to save back to the same file? I mean, how can I get an OutputStream of the same file?

+5
source share
1 answer

According to my knowledge, you cannot , because the directory /assetcannot be written, so you cannot make changes to the file that is in the / asset directory, Its because Android.apk is read-only.

SO How android?

+16

All Articles