Write a file in android?
<p>I get my raw resource:</p>

<blockquote>
  <p>InputStream myRawResource =
  context.getActivity().getResources().openRawResource(myID);</p>
</blockquote>

<p>How can I write this to a file? An MP3 file on the device.</p>
