Save a (.txt) file to the Assets Folder in Android?

Sardor Dushamov picture Sardor Dushamov · Mar 20, 2012 · Viewed 27.3k times · Source

How to write to .txt file in assets folder.

How to get path assets folder ?

Answer

user658042 picture user658042 · Mar 20, 2012

You can't. The assets folder is read-only at runtime.

Pick a different location to save your data, see Data Storage for more information.