There are 2 parts to my question but both are related. I have searched all over the place but cannot find a way to put in an array, all file names from R.raw, such as MP3s in string format.
I also want to create new buttons on the fly in Java, as opposed to using the XML files to lay out buttons.
psuedocode:
array[] = put all file names from R.raw into this array with file name;
count = count num of rows in array[];
//I want to be able to do this with that array for (int i = 0; i < count; i++) { create new button and assign it a sound(onclick); this.button should be placeable anywhere i want without using XML for layout }
Thanks in advance to any help anyone can provide!