I want to add x Files to a folder resources in Eclipse
Now I want to get a List with the unknown number and names of Files in the specified Folder like:
File directory = new File("resources/");
String[] dirArray = directory.list();
Where do I put the Files in Eclipse and where are they once my app is started?
I can get the directory Info for / but that’s about it.
Thanks in advance!
Taber
I don’t think you can add resources to an app after you create it. You need to store them using other methods. For example using externalStorage, or the hidden storage available where the app was installed.
Edit: The Data storage developer doc is located here. It gives you a great explanation of how you might go about storing your data. Since you are using images, some methods won’t be appropriate for you.