Android, how do can I get a list of all files in a folder?
I need the name (String) of all files in res/raw/ I tried: File f = new File("/"); String[] someFiles = f.list(); It looks like the root directory is the root of the android emulator...and not my computers root directory. That makes enough sense, but doesn't really help me find out where the raw folder exists. Update: Thanks for all the great replies. It appears that some of these are working, but only getting me half way. Perhaps a more detailed description will aid I want to get all the mp3 files in the raw folder so I can get all the names, then add them to a URI to play a random MP3 in the