How do I include a file in the getfilesdir directory?

时间:2017-04-09 23:56:43

标签: android csv android-studio

I'm building an android application, part of which reads .csv files. I plan on having users download the csv files eventually, but right now I just need to make sure the application reads them correctly. No matter where I place my test .csv file, the application either can't find the file, or the build fails (because I can't have commas in raw files I guess?).

Right now I'm using the context.getfilesdir() method to find the files. Is there a way for me to include a file I've made in this directory?

EDIT: It seems that what I'm looking for is the raw filetypes on this page.

My other option is having the application download them at install time to not have them as a raw resource.

0 个答案:

没有答案
相关问题