Read and then write .pcm files using Java
<p>How can I read and then write <code>.pcm</code> files using Java on Android, which I just recorded using the microphone at different frequencies?</p>

<pre><code>// TODO Auto-generated method stub
File fileForSaving = new File(Environment.
                    getExternalStorageDirectory(),recordings/" + name + ".pcm"); 
File file = new  File(Environment.getExternalStorageDirectory(),"test.pcm");
int sampleFreq = (Integer)freqset[SELECTED_INDEX];
</code></pre>

<p>I want to save the file to fileForSaving with different frequency rates.</p>
