Android path to asset txt file

后端 未结 6 1141
醉梦人生
醉梦人生 2020-11-27 06:16

I\'m doing:

FileReader fin = new FileReader(\"file:///android_asset/myFile.txt\");

in an Android project and many variations. At runtime I get a

6条回答
  •  抹茶落季
    2020-11-27 07:23

    I found that if you are using an IDE like Eclipse you may need to do a clean -- or delete the API in the bin directory. It seems that the assets isn't getting updated when you do a build.

提交回复
热议问题