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
Post a Comment