Got a brand new project using Google\'s new Android Studio IDE.
I\'m trying to load a simple text file using an InputStreamReader
. I\'m getting a file n
The correct answer didn't work for me exactly. This works:
Go to Project view and then go to app/src/main
and create new directory assets
to load the file:
InputStream is = getApplicationContext().getAssets().open("bla.txt");
or:
InputStream is = context.getAssets().open("bla.txt");
and then convert it to string at any way you want, examples here
detailed video of how to do it (not mine)