what i am trying to do is simply copy over entire folder full of mp3 files onto sdcard within an app. I am doing this out of "assets" folder because raw folder does not allow mp3 files to be named a certain way.
here is what I dug up so far but not sure if this will work. i am lost
Using java Syntax Highlighting
- InputStream ins = getResources().getAssets().open("");
- int size = ins.available();
- // Read the entire resource into a local byte buffer.
- byte[] buffer = new byte[size];
- ins.read(buffer);
- ins.close();
- FileOutputStream fos = new FileOutputStream("/sdcard/myfolder/");
- fos.write(buffer);
- fos.close();
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
can someone help?



