I have tried the solution suggested here: Load a simple text file in Android Studio among others.
I need to load the files from outside of an activity class, and the values be used in various other classes.
(Sidenote I don't necessarily have to have the files in the assets folder, they can be anywhere, as long as I could somehow load them).
Basically, it tells me to check a file named "app.iml" to have this line:
option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets"
Which it does.
After that, add the files to the "assets" directory.
I then try to load the file with:
File file = new File("IDs.txt");
and
Scanner in = new Scanner(file);
But I get a File Not Found exception.
No matter where I put the files, I am not able to load them. Any suggestions?