@@ -0,0 +1,1186 @@
+package org.smblott.intentradio;%0A%0Aimport android.content.Context;%0A%0Aimport java.io.File;%0Aimport java.io.FileOutputStream;%0Aimport java.io.InputStream;%0A%0Apublic class CopyResource extends Logger%0A%7B%0A   // source: http://stackoverflow.com/questions/8664468/copying-raw-file-into-sdcard%0A   //%0A   public void copy(Context context, int id, String path)%0A   %7B%0A      byte%5B%5D buff = new byte%5B1024%5D;%0A      int read = 0;%0A%0A      InputStream in = null;%0A      FileOutputStream out = null;%0A%0A      File file = new File(path);%0A      File directory = new File(file.getParent());%0A%0A      if ( ! directory.isDirectory() )%0A      %7B%0A         toast(%22Parent directory does not exist:%5Cn%22 + file.getParent());%0A         return;%0A      %7D%0A%0A      try%0A      %7B%0A         in = context.getResources().openRawResource(id);%0A         out = new FileOutputStream(path);%0A%0A         while ((read = in.read(buff)) %3E 0)%0A            out.write(buff, 0, read);%0A      %7D%0A      catch ( Exception e) %7B%7D%0A      finally%0A      %7B%0A         try%0A         %7B%0A            toast(%22Failed to copy file:%5Cn%22 + path);%0A            if ( in  != null ) in.close();%0A            if ( out != null ) out.close();%0A         %7D%0A         catch ( Exception e) %7B%7D%0A      %7D%0A   %7D%0A%7D%0A

Add CopyResource.