android - Invalid resource directory name (Eclipse) -


i trying read text .txt file in project directory in android. have file called "test.txt" in assets folder. text write in file causes compiler error: invalid resource directory name. why this? thought put files assets directory without problem. missing something, need declare assets in manifest or something? assets folder in root project folder, eg project/assets/test.

however text write in file causes compiler error

you can not write in assets @ runtime. assets folders don't exist on phone. they're compiled package. assets provides reading facility.

if want write something, please use external directory or cache directory provided application.

take @ storage options.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -